/* ===========================================
   グッぼる × 土肥圭太 パートナーシップ契約サイト
   Design: Clean, Data-Driven, Professional
   =========================================== */

:root {
  /* Primary Colors - グッぼるブランド（明るいトーン） */
  --primary: #5a7a9a;
  --primary-light: #6b8fb5;
  --accent: #e94560;
  --accent-hover: #ff6b6b;
  
  /* Neutral Colors */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  /* Border & Shadow */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  /* Functional Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* Typography */
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Noto Sans JP', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; border-bottom: 2px solid var(--accent); padding-bottom: var(--space-sm); }
h3 { font-size: 1.5rem; color: var(--primary); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* Header */
.header {
  background: linear-gradient(135deg, #5a7a9a 0%, #7a9ab8 100%);
  color: white;
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Navigation */
.nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #5a7a9a 0%, #7a9ab8 100%);
  color: white;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffeb3b;
  display: block;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Document Header */
.doc-header {
  background: var(--bg-secondary);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-light);
}

.doc-title {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.doc-meta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.doc-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.card {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-link {
  background: none;
  color: var(--accent);
  padding: 0;
}

.btn-link:hover {
  color: var(--accent-hover);
}

/* Tables - レスポンシブ対応 */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-lg) 0;
  -webkit-overflow-scrolling: touch;
}

.table-scroll-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  display: none;
}

@media (max-width: 768px) {
  .table-scroll-hint {
    display: block;
  }
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: #5a7a9a;
  color: white;
}

th, td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-weight: 600;
  white-space: nowrap;
  color: white;
}

tbody tr:hover {
  background: var(--bg-primary);
}

/* Data Highlight */
.data-highlight {
  background: linear-gradient(135deg, #5a7a9a 0%, #7a9ab8 100%);
  color: white;
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.data-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.data-item {
  padding: var(--space-md);
}

.data-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffeb3b;
  display: block;
}

.data-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  margin-top: var(--space-xs);
}

/* List Styles */
.list-check {
  list-style: none;
}

.list-check li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Article/Document Content */
.doc-content {
  background: var(--bg-secondary);
  padding: var(--space-2xl);
  margin: var(--space-xl) 0;
}

.doc-content h3 {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.doc-content h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Contract Article Styling */
.article {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--bg-primary);
  border-left: 3px solid var(--primary);
}

.article-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.article-content {
  color: var(--text-secondary);
}

.article-content ol,
.article-content ul {
  margin-left: var(--space-lg);
  margin-top: var(--space-sm);
}

.article-content li {
  margin-bottom: var(--space-sm);
}

/* Signature Block */
.signature-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 2px solid var(--border-medium);
}

.signature-party {
  text-align: center;
}

.signature-line {
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-sm);
  min-height: 60px;
}

.signature-name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.signature-title {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-medium);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-2xl) + -1px);
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline-date {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.timeline-content {
  background: var(--bg-secondary);
  padding: var(--space-md);
  border: 1px solid var(--border-light);
}

/* Footer */
.footer {
  background: #5a7a9a;
  color: white;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Dashboard & Interactive Components
   ======================================== */

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

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

/* Chart Cards */
.chart-card {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
}

.chart-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.chart-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.chart-container {
  position: relative;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.kpi-card {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.kpi-icon {
  font-size: 1.5rem;
}

.kpi-title {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.kpi-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
  transition: width 1s ease-out;
}

.progress-fill.progress-success {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-fill.progress-accent {
  background: linear-gradient(90deg, #e94560, #ff6b6b);
}

/* Pillar Cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.pillar-card {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  border-color: var(--primary);
}

.pillar-card.expanded {
  grid-column: span 1;
}

.pillar-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 3rem;
  font-weight: 700;
  color: var(--border-light);
  line-height: 1;
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.pillar-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.pillar-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pillar-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.pillar-card.expanded .pillar-detail {
  max-height: 500px;
  margin-top: var(--space-lg);
}

.pillar-detail ul {
  list-style: none;
  padding: 0;
}

.pillar-detail li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--text-secondary);
}

.pillar-detail li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.pillar-chart {
  height: 150px;
  margin-top: var(--space-md);
}

.click-hint {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-lg);
}

/* Win Chart */
.win-chart-container {
  height: 350px;
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

/* Benefit Tabs */
.benefit-tabs {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}

.tab-btn {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--bg-primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  margin-bottom: -1px;
}

.tab-content {
  display: none;
  padding: var(--space-xl);
}

.tab-content.active {
  display: block;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-primary);
  border-radius: 4px;
}

.benefit-icon {
  font-size: 1.25rem;
}

.benefit-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Document Cards */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.doc-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.doc-card:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.doc-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.doc-card-content {
  flex: 1;
}

.doc-card-content h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.doc-card-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.doc-card-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.doc-card:hover .doc-card-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.about-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.stat-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.stat-ring svg {
  transform: rotate(-90deg);
}

.stat-ring-bg {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 8;
}

.stat-ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.stat-ring-fill.stat-ring-accent {
  stroke: var(--accent);
}

.stat-ring-fill.stat-ring-success {
  stroke: var(--success);
}

.stat-ring-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.stat-ring-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.stat-ring-label {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.about-info h3 {
  margin-bottom: var(--space-md);
}

.feature-badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.badge {
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  border-radius: 20px;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, #5a7a9a 0%, #7a9ab8 100%);
  color: white;
  margin-top: var(--space-lg);
}

.highlight-icon {
  font-size: 1.5rem;
}

.highlight-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #5a7a9a 0%, #7a9ab8 100%);
  color: white;
}

.cta-section h2 {
  color: white;
  border-bottom-color: rgba(255,255,255,0.3);
}

.cta-section p {
  color: rgba(255,255,255,0.9);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1rem;
}

/* ========================================
   Specification Page Components
   ======================================== */

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 968px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

.summary-card {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  text-align: center;
}

.summary-card.summary-highlight {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #5a7a9a 0%, #7a9ab8 100%);
  color: white;
}

.summary-card.summary-highlight h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.summary-card.summary-highlight p {
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.summary-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.summary-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.summary-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* KPI Comparison Grid */
.kpi-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.kpi-compare-card {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
}

.kpi-compare-header {
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.kpi-compare-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.kpi-bar-item {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  align-items: center;
  gap: var(--space-sm);
}

.kpi-bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-bar-track {
  height: 12px;
  background: var(--border-light);
  border-radius: 6px;
  overflow: hidden;
}

.kpi-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease;
}

.kpi-bar-fill.kpi-bar-avg {
  background: #9ca3af;
}

.kpi-bar-fill.kpi-bar-current {
  background: #3b82f6;
}

.kpi-bar-fill.kpi-bar-target {
  background: #10b981;
}

.kpi-bar-value {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
}

.kpi-compare-diff {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
}

/* Cost Comparison */
.cost-comparison {
  display: flex;
  align-items: stretch;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.cost-card {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  padding: var(--space-xl);
  border: 2px solid var(--border-light);
}

.cost-card.cost-before {
  background: #fef2f2;
  border-color: #fecaca;
}

.cost-card.cost-after {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.cost-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.cost-icon {
  font-size: 1.5rem;
}

.cost-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.cost-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.cost-list li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.cost-total {
  font-weight: 700;
  font-size: 1.125rem;
  padding: var(--space-md);
  background: rgba(0,0,0,0.05);
  text-align: center;
}

.cost-total.cost-savings {
  background: #10b981;
  color: white;
}

.cost-arrow {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: var(--text-muted);
}

/* Timeline Visual */
.timeline-visual {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  overflow-x: auto;
}

.timeline-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-bottom: var(--space-lg);
  padding-left: 100px;
}

.timeline-months span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.timeline-row {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.timeline-label {
  width: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.timeline-bar {
  flex: 1;
  height: 32px;
  background: var(--border-light);
  border-radius: 4px;
  position: relative;
}

.timeline-event {
  position: absolute;
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.timeline-event:hover {
  transform: scaleY(1.2);
}

.timeline-event.circuit { background: #3b82f6; }
.timeline-event.challenge { background: #10b981; }
.timeline-event.event-set { background: #f59e0b; }
.timeline-event.signature { background: #e94560; }

/* Set Summary */
.set-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.set-summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.set-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.set-dot.circuit { background: #3b82f6; }
.set-dot.challenge { background: #10b981; }
.set-dot.event-set { background: #f59e0b; }
.set-dot.signature { background: #e94560; }

.set-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.set-count {
  font-weight: 700;
  color: var(--primary);
}

.set-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* PDCA Visual */
.pdca-visual {
  display: flex;
  justify-content: center;
  margin: var(--space-2xl) 0;
}

.pdca-circle {
  position: relative;
  width: 300px;
  height: 300px;
}

.pdca-item {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.pdca-item:hover {
  transform: scale(1.1);
}

.pdca-plan { top: 0; left: 50%; transform: translateX(-50%); border-color: #3b82f6; }
.pdca-do { top: 50%; right: 0; transform: translateY(-50%); border-color: #10b981; }
.pdca-check { bottom: 0; left: 50%; transform: translateX(-50%); border-color: #f59e0b; }
.pdca-action { top: 50%; left: 0; transform: translateY(-50%); border-color: #8b5cf6; }

.pdca-icon {
  font-size: 1.5rem;
}

.pdca-title {
  font-weight: 700;
  font-size: 0.875rem;
}

.pdca-desc {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.pdca-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.pdca-center span {
  display: block;
}

.pdca-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.pdca-detail-card {
  background: var(--bg-secondary);
  padding: var(--space-md);
  border: 1px solid var(--border-light);
}

.pdca-detail-card h4 {
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.pdca-detail-card p {
  font-size: 0.75rem;
  margin: 0;
}

/* KPI Dashboard */
.kpi-dashboard {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.kpi-ring-large {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.kpi-ring-large svg {
  transform: rotate(-90deg);
}

.kpi-ring-bg {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 10;
}

.kpi-ring-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 10;
  stroke-linecap: round;
}

.kpi-ring-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.kpi-ring-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.kpi-ring-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.kpi-list-item {
  display: grid;
  grid-template-columns: 40px 1fr 150px;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.kpi-list-icon {
  font-size: 1.5rem;
}

.kpi-list-title {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.kpi-list-value {
  font-weight: 700;
  color: var(--primary);
}

.kpi-list-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.kpi-list-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 4px;
}

.kpi-list-fill.kpi-fill-success {
  background: #10b981;
}

.kpi-list-fill.kpi-fill-accent {
  background: #e94560;
}

/* Priority Visual */
.priority-visual {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.priority-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  min-width: 200px;
}

.priority-card.priority-1 {
  border-color: #10b981;
}

.priority-card.priority-2 {
  border-color: #3b82f6;
}

.priority-card.priority-3 {
  border-color: #9ca3af;
}

.priority-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
}

.priority-1 .priority-number { background: #10b981; color: white; }
.priority-2 .priority-number { background: #3b82f6; color: white; }
.priority-3 .priority-number { background: #9ca3af; color: white; }

.priority-content h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.priority-content p {
  font-size: 0.75rem;
  margin: 0;
}

/* Policy Box */
.policy-box {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
}

.policy-box h4 {
  margin-bottom: var(--space-md);
}

.policy-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-box li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
}

.policy-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ========================================
   Proposal Page Components
   ======================================== */

/* ROI Highlight Grid */
.roi-highlight-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 968px) {
  .roi-highlight-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .roi-highlight-grid {
    grid-template-columns: 1fr;
  }
}

.roi-main-card {
  grid-row: span 2;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

@media (max-width: 968px) {
  .roi-main-card {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.roi-main-visual {
  flex-shrink: 0;
}

.roi-circle {
  position: relative;
  width: 140px;
  height: 140px;
}

.roi-circle svg {
  transform: rotate(-90deg);
}

.roi-bg {
  fill: none;
  stroke: rgba(255,255,255,0.3);
  stroke-width: 10;
}

.roi-fill {
  fill: none;
  stroke: white;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease;
}

.roi-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.roi-value {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.roi-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

.roi-main-text h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.roi-main-text p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 0.875rem;
}

.roi-stat-card {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  text-align: center;
}

.roi-stat-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.roi-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.roi-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Simulation Container */
.simulation-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 968px) {
  .simulation-container {
    grid-template-columns: 1fr;
  }
}

.chart-legend-custom {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.milestone-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.milestone-card {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.milestone-card.milestone-highlight {
  border-color: #10b981;
  background: #f0fdf4;
}

.milestone-month {
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.milestone-progress {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.milestone-bar {
  height: 100%;
  background: #3b82f6;
  border-radius: 4px;
}

.milestone-bar.milestone-complete {
  background: #10b981;
}

.milestone-bar.milestone-profit {
  background: linear-gradient(90deg, #10b981, #f59e0b);
}

.milestone-percent {
  font-weight: 700;
  font-size: 0.875rem;
}

.milestone-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Revenue Breakdown */
.revenue-breakdown {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

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

.revenue-chart-container {
  max-width: 300px;
  margin: 0 auto;
}

.revenue-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.revenue-item {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--item-color);
}

.revenue-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.revenue-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--item-color);
}

.revenue-name {
  font-weight: 600;
  flex: 1;
}

.revenue-amount {
  font-weight: 700;
  color: var(--primary);
}

.revenue-calc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.revenue-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
}

.revenue-fill {
  height: 100%;
  background: var(--item-color);
  border-radius: 3px;
}

/* Innovation Grid */
.innovation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.innovation-card {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.innovation-card:hover {
  border-color: var(--primary);
}

.innovation-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.innovation-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.innovation-summary {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.innovation-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.innovation-card.expanded .innovation-detail {
  max-height: 400px;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.innovation-detail ul {
  list-style: none;
  padding: 0;
}

.innovation-detail li {
  padding: var(--space-xs) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.academy-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tier {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm);
  background: var(--bg-primary);
  font-size: 0.875rem;
}

.tier.tier-pro {
  background: linear-gradient(135deg, #5a7a9a 0%, #7a9ab8 100%);
  color: white;
}

.tier-name { font-weight: 600; }
.tier-grade { color: var(--text-muted); }
.tier-price { font-weight: 700; }
.tier-pro .tier-grade { color: rgba(255,255,255,0.8); }

/* Roadmap Visual */
.roadmap-visual {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-2xl);
}

.roadmap-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-light);
  z-index: 0;
}

.roadmap-item {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  padding: var(--space-md);
  border: 2px solid var(--border-light);
  width: 22%;
  min-width: 150px;
}

.roadmap-item.year-1 { border-color: #3b82f6; }
.roadmap-item.year-2 { border-color: #10b981; }
.roadmap-item.year-3 { border-color: #f59e0b; }
.roadmap-item.year-5 { border-color: #e94560; }

.roadmap-year {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.year-1 .roadmap-year { color: #3b82f6; }
.year-2 .roadmap-year { color: #10b981; }
.year-3 .roadmap-year { color: #f59e0b; }
.year-5 .roadmap-year { color: #e94560; }

.roadmap-title {
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.roadmap-content ul {
  list-style: none;
  padding: 0;
  font-size: 0.75rem;
}

.roadmap-content li {
  padding: 2px 0;
  color: var(--text-secondary);
}

.roadmap-kpi {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.kpi-num {
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 968px) {
  .roadmap-visual {
    flex-direction: column;
    gap: var(--space-md);
  }
  .roadmap-line {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 4px;
    height: auto;
  }
  .roadmap-item {
    width: auto;
    margin-left: 40px;
  }
}

/* Risk Matrix */
.risk-matrix {
  display: grid;
  grid-template-columns: 80px repeat(3, 1fr);
  gap: 2px;
  background: var(--border-light);
  padding: 2px;
  margin-bottom: var(--space-md);
}

.risk-header {
  display: contents;
}

.risk-header span {
  background: var(--bg-secondary);
  padding: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.risk-row {
  display: contents;
}

.risk-prob {
  background: var(--bg-secondary);
  padding: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.risk-cell {
  background: var(--bg-secondary);
  padding: var(--space-sm);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.risk-item {
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: help;
}

.risk-item.risk-low { background: #d1fae5; color: #065f46; }
.risk-item.risk-medium { background: #fef3c7; color: #92400e; }
.risk-item.risk-high { background: #fee2e2; color: #991b1b; }

.risk-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.risk-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
}

.risk-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.risk-dot.risk-low { background: #10b981; }
.risk-dot.risk-medium { background: #f59e0b; }
.risk-dot.risk-high { background: #ef4444; }

/* Win Visual */
.win-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
  padding: var(--space-2xl);
}

.win-center {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #5a7a9a 0%, #7a9ab8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  z-index: 1;
}

.win-party {
  position: absolute;
  width: 160px;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  text-align: center;
}

.win-party h4 {
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.win-party ul {
  list-style: none;
  padding: 0;
  font-size: 0.75rem;
}

.win-party li {
  padding: 2px 0;
  color: var(--text-secondary);
}

.win-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.win-doi {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  border-color: #3b82f6;
}

.win-guppoboru {
  bottom: 20%;
  left: 15%;
  border-color: #10b981;
}

.win-industry {
  bottom: 20%;
  right: 15%;
  border-color: #f59e0b;
}

@media (max-width: 768px) {
  .win-visual {
    flex-direction: column;
    min-height: auto;
    gap: var(--space-lg);
  }
  .win-center {
    position: relative;
  }
  .win-party {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 300px;
  }
}

/* Conclusion Box */
.conclusion-box {
  background: var(--bg-secondary);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border-light);
}

.conclusion-box p {
  color: white;
  font-size: 1.125rem;
  line-height: 1.8;
}

.conclusion-quote {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255,255,255,0.1);
  font-style: italic;
  line-height: 1.8;
}

.quote-author {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-size: 0.875rem;
  opacity: 0.8;
}

.cta-section .conclusion-box {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* Growth Chart Container */
.growth-chart-container {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-xl { margin-top: var(--space-xl); }

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 14px; }
  
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .nav {
    justify-content: center;
    width: 100%;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-stats {
    gap: var(--space-lg);
  }
  
  .hero-stat-number {
    font-size: 1.75rem;
  }
  
  .doc-content {
    padding: var(--space-lg);
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .data-value {
    font-size: 1.5rem;
  }
  
  .signature-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .nav a {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
  }
}

/* ========================================
   Enhanced Interactive Components
   ======================================== */

/* Hero Badge */
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  animation: pulse 2s infinite;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

/* Stat Trend */
.stat-trend {
  font-size: 0.625rem;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.stat-trend-up {
  color: #90EE90;
}

/* Button Animations */
.btn-pulse {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(233, 69, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0); }
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* Executive Summary */
.exec-summary {
  background: var(--bg-secondary);
  padding: var(--space-2xl);
  border: 1px solid var(--border-light);
}

.exec-summary-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.exec-icon {
  font-size: 2rem;
}

.exec-summary-header h2 {
  margin: 0;
  border: none;
  padding: 0;
}

.exec-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Summary Flow */
.summary-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Summary Flow Steps - index.html */
.summary-flow .flow-step {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: 8px;
  text-align: center;
  min-width: 180px;
  position: relative;
  border: 1px solid var(--border-light);
}

.summary-flow .flow-step .flow-content {
  background: transparent;
  padding: 0;
  border: none;
}

.summary-flow .flow-step.highlight {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: #10b981;
}

.summary-flow .flow-step.highlight h4,
.summary-flow .flow-step.highlight p {
  color: rgba(255,255,255,0.9);
}

.summary-flow .flow-step.highlight .flow-value {
  color: #fff;
}

.summary-flow .flow-step.highlight .flow-content h4 {
  color: rgba(255,255,255,0.9);
}

.summary-flow .flow-step.highlight .flow-content p {
  color: rgba(255,255,255,0.85);
}

.flow-number {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.summary-flow .flow-content h4 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.summary-flow .flow-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.summary-flow .flow-content p {
  font-size: 0.75rem;
  margin: 0;
  color: var(--text-secondary);
}

.summary-flow .flow-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Summary Flow - Mobile Responsive */
@media (max-width: 768px) {
  .summary-flow {
    flex-direction: column;
    align-items: center;
  }
  
  .summary-flow .flow-step {
    width: 100%;
    max-width: 280px;
  }
  
  .summary-flow .flow-arrow {
    transform: rotate(90deg);
    margin: var(--space-sm) 0;
  }
}

/* Dashboard Tabs */
.dashboard-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.dash-tab {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-tab:hover {
  background: var(--bg-primary);
}

.dash-tab.active {
  background: var(--primary);
  color: white;
}

/* Dashboard Panels */
.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* KPI Gauge */
.kpi-section {
  margin-top: var(--space-2xl);
}

.kpi-section-title {
  margin-bottom: var(--space-lg);
}

.kpi-gauge {
  position: relative;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.kpi-gauge svg {
  width: 100px;
  height: 50px;
}

.gauge-bg {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 8;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}

.gauge-fill.gauge-success { stroke: #10b981; }
.gauge-fill.gauge-accent { stroke: #e94560; }
.gauge-fill.gauge-warning { stroke: #f59e0b; }

.gauge-value {
  position: absolute;
  bottom: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.kpi-current, .kpi-compare, .kpi-savings {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-savings {
  color: var(--success);
  font-weight: 600;
}

/* ROI Deep Analysis */
.roi-deep-analysis {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 968px) {
  .roi-deep-analysis {
    grid-template-columns: 1fr;
  }
}

.roi-breakdown, .roi-calculator {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
}

/* Breakdown Bars */
.breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.breakdown-item {
  border-left: 4px solid var(--item-color);
  padding-left: var(--space-md);
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.breakdown-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.breakdown-amount {
  font-weight: 700;
  color: var(--primary);
}

.breakdown-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.breakdown-fill {
  height: 100%;
  background: var(--item-color, var(--primary));
  border-radius: 4px;
  transition: width 1s ease;
}

.breakdown-calc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.breakdown-total {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--bg-primary);
  margin-top: var(--space-lg);
  font-weight: 600;
}

.total-amount {
  font-size: 1.25rem;
  color: var(--success);
}

/* ROI Calculator */
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.calc-inputs label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-inputs label span:first-child {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.calc-inputs input[type="range"] {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: var(--border-light);
  border-radius: 4px;
  outline: none;
}

.calc-inputs input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.slider-value {
  font-weight: 600;
  color: var(--primary);
}

.calc-result {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm);
  background: var(--bg-primary);
}

.result-value {
  font-weight: 700;
}

.result-highlight {
  color: var(--success);
  font-size: 1.25rem;
}

/* Year Timeline */
.year-timeline {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
}

.timeline-visual-enhanced {
  margin: var(--space-xl) 0;
  overflow-x: auto;
}

.timeline-header {
  display: grid;
  grid-template-columns: 100px repeat(12, 1fr);
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.timeline-header span {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-align: center;
}

.timeline-row-enhanced {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

.timeline-type {
  font-size: 0.75rem;
  font-weight: 600;
}

.timeline-bar-container {
  position: relative;
  height: 30px;
  background: var(--border-light);
  border-radius: 4px;
}

.timeline-event-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.timeline-event-dot:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

.timeline-event-dot.circuit { background: #3b82f6; }
.timeline-event-dot.challenge { background: #10b981; }
.timeline-event-dot.event-set { background: #f59e0b; }
.timeline-event-dot.signature { background: #e94560; }

.timeline-count {
  font-size: 0.875rem;
  font-weight: 700;
  text-align: right;
}

/* Set Type Summary */
.set-type-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.set-type-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-primary);
  border-radius: 4px;
}

.set-type-icon {
  font-size: 1.5rem;
}

.set-type-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.set-type-info p {
  font-size: 0.75rem;
  margin: 0;
}

.set-type-count {
  margin-left: auto;
  font-weight: 700;
  color: var(--primary);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

.comparison-table {
  width: 100%;
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md);
  text-align: left;
}

.before-col {
  background: #fef2f2;
}

.after-col {
  background: #f0fdf4;
}

.improvement {
  color: var(--success);
  font-weight: 600;
}

/* VS Cards */
.comparison-visual {
  display: flex;
  align-items: stretch;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.vs-card {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: var(--space-xl);
  border-radius: 8px;
}

.vs-card.before {
  background: #fef2f2;
  border: 2px solid #fecaca;
}

.vs-card.after {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.vs-header {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.vs-cost {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.vs-list {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
}

.vs-list li {
  padding: 0.25rem 0;
}

.vs-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vs-arrow span {
  font-size: 2rem;
  color: var(--text-muted);
}

.vs-savings {
  background: var(--success);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Pillar Stats */
.pillar-stats {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.pillar-stat-item {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pillar-stat-item strong {
  color: var(--primary);
  font-size: 1rem;
}

.pillar-expand-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  text-align: center;
  transition: opacity 0.2s ease;
}

.pillar-card.expanded .pillar-expand-hint {
  opacity: 0;
}

/* Pillar Detail Dots */
.pillar-detail li .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.dot.circuit { background: #3b82f6; }
.dot.challenge { background: #10b981; }
.dot.event-set { background: #f59e0b; }
.dot.signature { background: #e94560; }

/* SNS Breakdown */
.sns-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sns-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-primary);
  border-radius: 4px;
}

.sns-icon {
  font-size: 1rem;
}

.sns-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.sns-activity {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Event Mini Cards */
.event-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.event-mini-card {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm);
  background: var(--bg-primary);
  border-radius: 4px;
  font-size: 0.875rem;
}

.event-freq {
  font-weight: 600;
  color: var(--primary);
}

/* Benefit Grid Enhanced */
.benefit-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.benefit-item-enhanced {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-primary);
  border-radius: 4px;
}

.benefit-item-enhanced .benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-content h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.benefit-content p {
  font-size: 0.75rem;
  margin: 0;
}

/* Tab with Icons */
.tab-btn .tab-icon {
  margin-right: 0.5rem;
}

/* Doc Cards Enhanced */
.doc-cards-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.doc-card-enhanced {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.doc-card-enhanced:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.doc-card-number {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.doc-card-enhanced .doc-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.doc-card-enhanced .doc-card-content {
  flex: 1;
}

.doc-card-enhanced h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.doc-card-enhanced p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.doc-card-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: var(--bg-primary);
  border-radius: 4px;
  color: var(--text-muted);
}

.doc-card-enhanced .doc-card-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.doc-card-enhanced:hover .doc-card-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* About Grid Enhanced */
.about-grid-enhanced {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.about-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

.stat-ring-group {
  display: flex;
  justify-content: center;
}

.stat-ring-large {
  position: relative;
  width: 160px;
  height: 160px;
}

.stat-ring-large svg {
  transform: rotate(-90deg);
}

.stat-ring-large .stat-ring-fill.animated {
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  animation: ringFill 2s ease-out;
}

@keyframes ringFill {
  from { stroke-dashoffset: 283; }
  to { stroke-dashoffset: 0; }
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  width: 100%;
}

.mini-stat {
  text-align: center;
  padding: var(--space-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.mini-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.mini-label {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.about-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.feature-badges-enhanced {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.badge-large {
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  font-size: 1rem;
  border-radius: 4px;
}

.about-highlight .highlight-text {
  display: flex;
  flex-direction: column;
}

.about-highlight .quote {
  font-weight: 600;
}

.about-highlight .author {
  font-size: 0.75rem;
  opacity: 0.8;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.fact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.fact-icon {
  font-size: 1rem;
}

/* CTA Trust */
.cta-trust {
  margin-top: var(--space-xl);
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Revenue Summary */
.revenue-summary {
  margin-top: var(--space-md);
  text-align: center;
}

.revenue-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.revenue-biggest {
  font-weight: 700;
  color: var(--primary);
}

.revenue-percent {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Custom Tooltip */
.custom-tooltip {
  position: fixed;
  background: rgba(26, 26, 46, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  z-index: 10000;
  pointer-events: none;
  animation: tooltipFade 0.2s ease;
}

@keyframes tooltipFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pillar Chart Mini */
.pillar-chart-mini {
  margin-bottom: var(--space-md);
}

/* ========================================
   Documents Page Styles
   ======================================== */

/* Quick Summary Grid */
.quick-summary-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.quick-summary-main h2 {
  margin-bottom: var(--space-md);
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.value-proposition {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.value-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-primary);
  border-radius: 4px;
}

.value-icon {
  font-size: 1.25rem;
}

.value-text {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Document Map */
.doc-map {
  position: relative;
  min-height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-2xl);
}

.doc-map-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.map-hub {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, #7a9ab8 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  box-shadow: 0 4px 20px rgba(90, 122, 154, 0.3);
}

.hub-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.hub-text {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.doc-map-item {
  position: absolute;
  width: 180px;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.doc-map-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.doc-map-item.map-spec {
  top: 20px;
  left: 10%;
  border-color: #3b82f6;
}

.doc-map-item.map-contract {
  top: 20px;
  right: 10%;
  border-color: #10b981;
}

.doc-map-item.map-req {
  bottom: 20px;
  left: 10%;
  border-color: #f59e0b;
}

.doc-map-item.map-proposal {
  bottom: 20px;
  right: 10%;
  border-color: #e94560;
}

.map-item-number {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 700;
}

.map-item-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.doc-map-item h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.doc-map-item p {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.map-item-keywords {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.map-item-keywords span {
  font-size: 0.5rem;
  padding: 0.125rem 0.375rem;
  background: var(--bg-primary);
  border-radius: 2px;
  color: var(--text-muted);
}

.map-item-nature {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.map-item-nature.legal {
  color: #10b981;
  font-weight: 600;
}

.doc-map-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .doc-map {
    flex-direction: column;
    min-height: auto;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  
  .doc-map-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
  
  .doc-map-item {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
  }
  
  .doc-map-lines {
    display: none;
  }
}

/* Reading Order */
.doc-reading-order {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
  border-radius: 8px;
}

.doc-reading-order h3 {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.reading-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.reading-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: var(--space-md);
  background: var(--bg-primary);
  border-radius: 8px;
  min-width: 100px;
}

.step-num {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-doc {
  font-weight: 600;
  font-size: 0.875rem;
}

.step-why {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.reading-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* Metrics Dashboard */
.metrics-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

.metric-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.metric-card.metric-highlight {
  border-left: 4px solid var(--primary);
}

.metric-card.metric-success {
  border-left: 4px solid #10b981;
}

.metric-card.metric-accent {
  border-left: 4px solid var(--accent);
}

.metric-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-breakdown {
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Metrics Gauges */
.metrics-gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

.gauge-card {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-align: center;
}

.gauge-card h4 {
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.gauge-visual {
  position: relative;
  height: 80px;
}

.gauge-visual svg {
  width: 100%;
  height: 100%;
}

.gauge-bg-path {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge-fill-path {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease;
}

.gauge-fill-path.roi-fill {
  stroke: #10b981;
  stroke-dasharray: 157;
  stroke-dashoffset: 39.25;
}

.gauge-fill-path.cost-fill {
  stroke: #f59e0b;
  stroke-dasharray: 157;
  stroke-dashoffset: 117.75;
}

.gauge-fill-path.payback-fill {
  stroke: #3b82f6;
  stroke-dasharray: 157;
  stroke-dashoffset: 0;
}

.gauge-center-value {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  padding: 0 var(--space-md);
}

/* Document Detail Grid */
.doc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

.doc-detail-card {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.doc-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.doc-detail-card[data-doc="spec"] { border-top: 4px solid #3b82f6; }
.doc-detail-card[data-doc="contract"] { border-top: 4px solid #10b981; }
.doc-detail-card[data-doc="req"] { border-top: 4px solid #f59e0b; }
.doc-detail-card[data-doc="proposal"] { border-top: 4px solid #e94560; }

.doc-detail-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.doc-detail-icon {
  font-size: 2rem;
}

.doc-detail-title {
  flex: 1;
}

.doc-num {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
}

.doc-detail-title h3 {
  font-size: 1.125rem;
  margin: 0;
}

.legal-badge {
  background: #10b981;
  color: white;
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.doc-detail-desc {
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.doc-detail-contents h5 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.doc-detail-contents ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-md);
}

.doc-detail-contents li {
  font-size: 0.8rem;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
  color: var(--text-secondary);
}

.doc-detail-contents li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.doc-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.meta-item {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Contract Flow */
.contract-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.flow-timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.flow-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-light);
}

.flow-item {
  position: relative;
  padding-bottom: var(--space-xl);
  opacity: 0.6;
  transform: translateX(-10px);
  transition: all 0.5s ease;
}

.flow-item.visible,
.flow-item.active {
  opacity: 1;
  transform: translateX(0);
}

.flow-dot {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 4px);
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--border-light);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.flow-item.active .flow-dot,
.flow-item.visible .flow-dot {
  background: var(--primary);
}

.flow-item.success .flow-dot {
  background: #10b981;
}

/* Contract flow content - documents.html */
.contract-flow .flow-content {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.flow-step-num {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contract-flow .flow-content h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contract-flow .flow-content p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.flow-duration {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.flow-summary {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: 8px;
}

.flow-summary-item {
  text-align: center;
}

.summary-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.summary-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

/* Styled Table */
.styled-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
}

.styled-table thead {
  background: var(--primary);
}

.styled-table tbody tr:nth-child(even) {
  background: var(--bg-primary);
}

.table-icon {
  margin-right: 0.5rem;
}

.badge-none {
  background: var(--border-light);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.badge-legal {
  background: #10b981;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-partial {
  background: #f59e0b;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* CTA Doc Buttons */
.cta-doc-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.cta-doc-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: white;
  transition: all 0.2s ease;
}

.cta-doc-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: white;
}

.cta-doc-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}

.cta-num {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.cta-doc-btn.primary .cta-num {
  background: rgba(0,0,0,0.2);
}

.cta-name {
  font-weight: 600;
}

.cta-arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}

.cta-doc-btn:hover .cta-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   Requirements Page Styles
   ======================================== */

/* Chart Section */
.chart-section {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background: var(--bg-primary);
  border-radius: 8px;
}

.chart-section h3 {
  margin-bottom: var(--space-sm);
}

.chart-section > p {
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

/* Grade Legend */
.grade-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.grade-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* KPI Visual Section */
.kpi-visual-section {
  margin: var(--space-xl) 0;
}

.kpi-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.kpi-visual-card {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.kpi-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.kpi-visual-title {
  font-weight: 600;
  font-size: 0.875rem;
}

.kpi-visual-target {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-visual-target strong {
  color: var(--success);
}

.kpi-bar-container {
  margin-bottom: var(--space-sm);
}

.kpi-bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.kpi-bar-track {
  height: 12px;
  background: var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.kpi-fill-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 1.5s ease-out;
  width: 0;
}

.kpi-fill-bar.current {
  background: #3b82f6;
}

.kpi-fill-bar.target {
  background: #10b981;
}

.kpi-marker {
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--accent);
}

/* Investment Breakdown - specification.html */
.investment-breakdown {
  background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.investment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.investment-card {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.investment-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.investment-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.investment-label {
  font-weight: 600;
  margin: var(--space-xs) 0;
  color: var(--text-primary);
}

.investment-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.investment-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ROI Summary Section */
.roi-summary-section {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.roi-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.roi-flow-item {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-primary);
  border-radius: 8px;
  min-width: 120px;
}

.roi-flow-highlight {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
}

.roi-flow-highlight .roi-flow-label {
  color: rgba(255,255,255,0.9);
}

.roi-flow-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.roi-flow-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.roi-flow-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.roi-metrics {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.roi-metric {
  text-align: center;
}

.roi-metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.roi-metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Revenue Effect Grid - specification.html */
.revenue-effect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.revenue-effect-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.revenue-effect-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.revenue-effect-icon {
  font-size: 1.25rem;
}

.revenue-effect-name {
  font-weight: 600;
  color: var(--text-primary);
}

.revenue-effect-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.revenue-effect-calc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.revenue-effect-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--success), #059669);
}

.revenue-total-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: var(--space-xl);
  border-radius: 12px;
  text-align: center;
}

.revenue-total-label {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: var(--space-xs);
}

.revenue-total-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.revenue-total-roi {
  font-size: 1rem;
  opacity: 0.9;
}

.revenue-total-roi strong {
  color: #fcd34d;
  font-size: 1.25rem;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .nav {
    display: none;
  }
  
  .doc-content {
    padding: 0;
    margin: 0;
  }
  
  .section {
    padding: var(--space-lg) 0;
    page-break-inside: avoid;
  }
}
