/**
 * ChatStream - Landing Page
 * Claude (Anthropic) 風の配色: クリーム背景 + 温かいダークテキスト + コーラルのアクセント
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --bg-primary: #f8f8f4;
  --bg-secondary: #efeee7;
  --bg-tertiary: #e8e6dd;
  --bg-card: #ffffff;
  --text-primary: #141413;
  --text-secondary: #5c5a52;
  --text-tertiary: #8c8a82;
  --accent: #c2562f;
  --accent-hover: #a64722;
  --border: #e3dfd4;
  --code-bg: #1f1e1c;
  --success: #22a06b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  line-height: 1.3;
}

p {
  margin: 0 0 20px 0;
}

/* ============================================
   Header
   ============================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(248, 248, 244, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: all 0.3s ease;
}

#header.header-transparent {
  background: transparent;
  border-bottom: none;
}

#header.header-fixed {
  background: rgba(248, 248, 244, 0.95);
  border-bottom: 1px solid var(--border);
}

#header #logo {
  display: flex;
  align-items: center;
}

#header #logo h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

#header #logo h1 a {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

#header #logo h1 a::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

#nav-menu-container {
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-menu .menu-active a {
  color: var(--text-primary);
}

/* Documentation button - special styling */
.nav-menu a[href="/docs"] {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.nav-menu a[href="/docs"]:hover {
  background: var(--accent-hover);
  color: white;
}

@media (max-width: 768px) {
  #header {
    padding: 0 20px;
  }

  #nav-menu-container {
    display: none;
  }
}

/* ============================================
   Intro Section
   ============================================ */
#intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-primary);
  padding: 120px 20px 80px;
}

#intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(194, 86, 47, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(194, 86, 47, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

#intro .intro-text {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

#intro .intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

#intro .intro-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#intro h2 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

#intro h2 .highlight {
  color: var(--accent);
}

#intro .intro-tagline {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  #intro h2 {
    font-size: 42px;
    letter-spacing: -1px;
  }

  #intro .intro-tagline {
    font-size: 16px;
  }
}

#intro p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  #intro p {
    font-size: 15px;
  }
}

#intro .intro-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

#intro .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

#intro .btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
}

#intro .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

#intro .btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

/* ============================================
   Code Preview
   ============================================ */
.code-preview {
  margin-top: 60px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.code-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #334155;
  border-bottom: 1px solid #475569;
}

.code-preview-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.code-preview-header .dot:nth-child(1) { background: #ff5f56; }
.code-preview-header .dot:nth-child(2) { background: #ffbd2e; }
.code-preview-header .dot:nth-child(3) { background: #27ca3f; }

.code-preview pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

.code-preview code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e4e4e7;
}

.code-preview .code-comment { color: #6b7280; }
.code-preview .code-string { color: #a5d6ff; }
.code-preview .code-keyword { color: #ff7b72; }

/* ============================================
   Sections
   ============================================ */
section {
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-header .section-divider {
  display: none;
}

.section-header .section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .section-header .section-title {
    font-size: 28px;
  }

  .section-header .section-description {
    font-size: 16px;
  }
}

/* ============================================
   About Section
   ============================================ */
#about .feature-box {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#about .feature-box:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(194, 86, 47, 0.1);
}

#about .feature-box i {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
}

#about .feature-box h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

#about .feature-box p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
}

/* ============================================
   Features Section
   ============================================ */
#features .feature-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#features .feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(194, 86, 47, 0.1);
}

#features .feature-icon {
  width: 56px;
  min-width: 56px;
  height: 56px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#features .feature-icon i {
  font-size: 24px;
  color: var(--accent);
}

#features .feature-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

#features .feature-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

#features .feature-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#features .feature-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

#features .feature-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 768px) {
  #features .feature-card {
    flex-direction: column;
    text-align: center;
  }

  #features .feature-icon {
    margin: 0 auto;
  }

  #features .feature-content li {
    text-align: left;
  }
}

/* ============================================
   Deidentification Table
   ============================================ */
.deidentification-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.deidentification-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.deidentification-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.deidentification-table tr:last-child td {
  border-bottom: none;
}

.deidentification-table code {
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.workflow-diagram {
  margin-top: 30px;
}

.workflow-diagram .workflow-step {
  display: inline-block;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin: 5px;
}

.workflow-diagram i {
  color: var(--text-tertiary);
  margin: 0 8px;
}

/* ============================================
   Use Cases
   ============================================ */
.use-case-box {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  height: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.use-case-box:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(194, 86, 47, 0.1);
}

.use-case-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.use-case-icon i {
  font-size: 28px;
  color: var(--accent);
}

.use-case-box h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.use-case-box p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* ============================================
   Performance
   ============================================ */
.performance-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.performance-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.performance-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.performance-table tr:last-child td {
  border-bottom: none;
}

.performance-table td i {
  color: var(--accent);
  margin-right: 8px;
}

.performance-box {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  height: 100%;
}

.performance-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.performance-icon i {
  font-size: 28px;
  color: var(--accent);
}

/* ============================================
   API Section
   ============================================ */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.code-block pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e4e4e7;
}

#api .table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

#api .table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  border: none;
  border-bottom: 1px solid var(--border);
}

#api .table td {
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

#api .table code {
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-card {
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  margin-bottom: 24px;
  color: var(--accent);
}

.contact-card h4 {
  font-size: 24px;
  margin-bottom: 16px;
}

.contact-info {
  margin: 24px 0;
}

.contact-info p {
  margin-bottom: 12px;
}

.contact-info i {
  color: var(--accent);
  margin-right: 12px;
  width: 20px;
}

.contact-feature {
  padding: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-feature i {
  color: var(--accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

/* ============================================
   Footer
   ============================================ */
#footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

#footer .copyright {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

#footer .credits {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

#footer .footer-links {
  text-align: center;
  margin-bottom: 16px;
}

#footer .footer-links a {
  color: var(--text-secondary);
  padding: 0 16px;
  font-size: 14px;
}

#footer .footer-links a:hover {
  color: var(--text-primary);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  display: none;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ============================================
   Legal Note
   ============================================ */
.legal-note {
  background: #f8f9fa;
  border-left: 3px solid #ddd;
  padding: 16px 20px;
  margin-top: 24px;
  border-radius: 0 8px 8px 0;
}

.legal-note p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.7;
  margin: 0;
}

.legal-note a {
  color: var(--accent);
}

/* ============================================
   Data Policy Section
   ============================================ */
.data-policy-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-policy-section > h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.data-policy-section > h4 i {
  color: var(--accent);
  margin-right: 10px;
}

.data-policy-section h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.data-policy-table {
  background: var(--bg-card);
  font-size: 14px;
}

.data-policy-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.data-policy-table td:first-child {
  width: 35%;
  white-space: nowrap;
  color: var(--text-primary);
}

.data-policy-table td:last-child {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .data-policy-section {
    padding: 24px;
  }

  .data-policy-table td:first-child {
    white-space: normal;
  }
}

/* ============================================
   Architecture Diagram
   ============================================ */
.architecture-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 20px 0;
}

.arch-node {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  min-width: 240px;
}

.arch-node--piifi {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  padding: 18px 32px;
  box-shadow: 0 4px 12px rgba(194, 86, 47, 0.3);
}

.arch-node--piifi small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 12px;
  padding: 4px 0;
}

.arch-arrow i {
  font-size: 18px;
}

.arch-branch {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.arch-branch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-supplement {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.integration-patterns-table {
  background: var(--bg-card);
  font-size: 14px;
  margin-top: 24px;
}

.integration-patterns-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 16px;
}

.integration-patterns-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.integration-patterns-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .architecture-diagram {
    padding: 24px;
  }

  .arch-branch {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .arch-node {
    min-width: 200px;
  }
}

/* ============================================
   Japanese Detection Examples
   ============================================ */
.detection-examples-table {
  background: var(--bg-card);
  font-size: 13px;
}

.detection-examples-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 14px;
  font-size: 13px;
}

.detection-examples-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.detection-examples-table .text-danger {
  color: #dc3545 !important;
}

.detection-examples-table .text-success {
  color: var(--success) !important;
}

/* ============================================
   CTA Box
   ============================================ */
.cta-box {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.cta-box h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.cta-box .btn-primary {
  font-size: 16px;
  padding: 16px 32px;
}

.cta-box .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.cta-box .btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

.cta-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ============================================
   Pricing Plans Table
   ============================================ */
.pricing-plans-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.pricing-plans-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.pricing-plans-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.pricing-plans-table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================================
   Inline CTA Band (ChatStream)
   ============================================ */
.cta-band { padding: 56px 0; }
.cta-band-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.cta-band-inner p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.cta-band .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.cta-band .btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }

/* ============================================
   Related Resources
   ============================================ */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.resource-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}
.resource-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(194, 86, 47, 0.12);
}
.resource-card-image { aspect-ratio: 16 / 9; background: var(--bg-tertiary); overflow: hidden; }
.resource-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resource-card-content { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.resource-card-site { font-size: 12px; color: var(--text-tertiary); margin-bottom: 8px; }
.resource-card-site i { color: var(--accent); margin-right: 6px; }
.resource-card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0 0 8px 0; line-height: 1.5; }
.resource-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
@media (max-width: 992px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .resources-grid { grid-template-columns: 1fr; } }

/* ============================================
   Footer link wrapping fix (no ugly mid-word breaks)
   ============================================ */
#footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 0;
}
#footer .footer-links a {
    white-space: nowrap;
}
#footer .credits,
#footer .copyright {
    word-break: keep-all;
    line-break: strict;
}
@media (min-width: 992px) {
    #footer .footer-links.text-lg-right { justify-content: flex-end; }
}
