/* Variant 18-US - Blue Theme with TIME-inspired typography */
:root {
  --bg: #0b0f14;
  --text: #0f1720;
  --muted: #5a6776;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --card: #ffffff;
  --alt: #f6f9fc;
  --shadow: 0 10px 30px rgba(17, 27, 39, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #eef2f6;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { display: inline-flex; gap: 10px; align-items: center; }
.brand .logo { display: inline-flex; }
.brand-text { 
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700; 
  letter-spacing: .3px; 
  font-size: 18px;
}
.nav { display: inline-flex; gap: 24px; }
.nav a { 
  color: var(--muted); 
  text-decoration: none; 
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav a:hover { color: var(--text); }

.hero {
  background: radial-gradient(1200px 600px at 20% -10%, #eff6ff 0%, transparent 60%),
              radial-gradient(1000px 600px at 80% -20%, #dbeafe 0%, transparent 60%);
  border-bottom: 1px solid #eef2f6;
}
.hero-inner { padding: 80px 0 48px; }
.hero h1 { 
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 5vw, 52px); 
  line-height: 1.2; 
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.lead { 
  font-size: clamp(17px, 2.5vw, 21px); 
  margin: 0 0 24px;
  line-height: 1.6;
  color: #2a3744;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  padding: 14px 24px; 
  border-radius: 6px; 
  text-decoration: none;
  font-weight: 600; 
  letter-spacing: .3px; 
  border: 1px solid transparent;
  font-size: 15px;
  transition: all 0.2s;
}
.btn.primary { 
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: #fff; 
}
.btn.primary:hover { 
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn.ghost { 
  background: transparent; 
  color: var(--brand); 
  border-color: var(--brand); 
}
.btn.ghost:hover {
  background: rgba(37, 99, 235, 0.05);
}
.btn-large { padding: 16px 28px; font-size: 16px; gap: 8px; }

.badges { 
  display: flex; 
  gap: 10px; 
  padding: 0; 
  margin: 16px 0 0; 
  list-style: none; 
  flex-wrap: wrap; 
}
.badges li { 
  background: #fff; 
  border: 1px solid #e8eef5; 
  color: #2a4b5f; 
  padding: 6px 12px; 
  border-radius: 999px; 
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section { padding: 64px 0; }
.section.alt { background: var(--alt); }
.section h2 { 
  font-family: Georgia, 'Times New Roman', serif;
  margin: 0 0 12px; 
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section-intro { 
  color: var(--muted); 
  margin: 8px 0 28px;
  font-size: 16px;
  line-height: 1.6;
}

.grid-2 { display: grid; gap: 32px; grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.checklist { padding-left: 20px; margin: 12px 0 0; }
.checklist li { margin: 8px 0; line-height: 1.7; }

.card { 
  background: var(--card); 
  border: 1px solid #edf1f6; 
  border-radius: 8px; 
  padding: 24px; 
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(17, 27, 39, 0.12);
}
.card.highlight { 
  border-color: #bfdbfe; 
  background: linear-gradient(0deg, #ffffff, #ffffff), radial-gradient(600px 180px at 30% -20%, #eff6ff 0%, transparent 60%); 
  background-blend-mode: multiply; 
}
.card h3 { 
  font-family: Georgia, 'Times New Roman', serif;
  margin-top: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.text-link { color: var(--brand); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.list { padding-left: 20px; }
.steps { 
  padding-left: 20px; 
  line-height: 1.8;
}
.steps li {
  margin-bottom: 12px;
}
.small { color: var(--muted); font-size: 13px; }

.note { 
  margin-top: 20px; 
  padding: 16px 18px; 
  background: #fff; 
  border: 1px dashed #dbe6ef; 
  border-radius: 8px; 
  color: #2a4b5f;
  line-height: 1.6;
}

.cta { 
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe); 
  border-top: 1px solid #eaf3fb; 
}
.cta-inner { text-align: center; padding: 48px 0; }
.cta-inner h2 { 
  font-family: Georgia, 'Times New Roman', serif;
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
}

.site-footer { 
  border-top: 1px solid #eef2f6; 
  background: #fff; 
}
.footer-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 20px 0; 
}
.footer-nav { display: inline-flex; gap: 20px; }
.footer-nav a { 
  color: var(--muted); 
  text-decoration: none;
  font-size: 13px;
}
.footer-nav a:hover { color: var(--text); }

/* Card header styles */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f4f8;
}
.card-header h3 { margin: 0; }
.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-tag.positive { background: #dcfce7; color: #166534; }
.badge-tag.neutral { background: #fef3c7; color: #92400e; }
.badge-tag.negative { background: #fee2e2; color: #991b1b; }
.card-description { 
  color: var(--muted); 
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: 14px;
}

/* Visual bar styles */
.visual-bar { margin: 20px 0; }
.bar-item { margin-bottom: 14px; }
.bar-label {
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2a3744;
}
.bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar-fill {
  height: 26px;
  border-radius: 13px;
  transition: width 0.3s ease;
}
.bar-fill.positive { background: linear-gradient(90deg, #dbeafe, #bfdbfe); }
.bar-fill.neutral { background: linear-gradient(90deg, #fef3c7, #fde68a); }
.bar-fill.negative { background: linear-gradient(90deg, #fee2e2, #fecaca); }
.bar-value {
  font-size: 13px;
  font-weight: 700;
  min-width: 55px;
  text-align: right;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
}
.stat-value.positive { color: #166534; }
.stat-value.negative { color: #991b1b; }

/* Theme list */
.theme-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.theme-list li {
  padding: 14px 0;
  border-bottom: 1px solid #eef2f6;
}
.theme-list li:last-child { border-bottom: none; }
.theme-list strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 15px;
}
.trend-indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}
.trend-indicator.up {
  background: #dcfce7;
  color: #166534;
}
.trend-indicator.down {
  background: #fee2e2;
  color: #991b1b;
}
.theme-list p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Form styles */
.form-container {
  max-width: 640px;
  margin: 0 auto;
}
.query-form {
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #eef2f6;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.2s;
}
.checkbox-label:hover {
  background: #fafafa;
}
.checkbox-label input[type="checkbox"] {
  cursor: pointer;
}
.form-info {
  margin-top: 28px;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
}
.form-info p {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
}
.form-info ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* FAQ styles */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 44px;
  font-size: 15px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 22px;
  color: var(--brand);
  transition: transform 0.2s;
  font-weight: 300;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover {
  background: #fafafa;
}
.faq-content {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Warning box */
.warning-box {
  margin-top: 28px;
  padding: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}
.warning-box strong {
  display: block;
  margin-bottom: 10px;
  color: #1e3a8a;
  font-size: 15px;
}
.warning-box p {
  line-height: 1.7;
  margin: 0;
}

/* Legend list */
.legend-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.legend-dot.positive { background: #bbf7d0; }
.legend-dot.neutral { background: #fde68a; }
.legend-dot.negative { background: #fecaca; }

/* Note text */
.note-text {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}
.data-source-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eef2f6;
}
.data-source-section h3 {
  font-size: 15px;
  margin: 0 0 14px;
  font-weight: 600;
}
.source-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.source-link {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
}
.source-link:hover {
  text-decoration: underline;
}
.disclaimer-small {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.quality-metrics {
  margin: 20px 0;
}
.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f6;
}
.metric:last-child { border-bottom: none; }
.metric-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.metric-value {
  font-size: 18px;
  font-weight: 700;
  margin-right: 10px;
}
.metric-change {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.metric-change.positive {
  background: #dcfce7;
  color: #166534;
}
.metric-change.neutral {
  background: #f3f4f6;
  color: #6b7280;
}

/* Cookie Consent Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eef2f6;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-text h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.cookie-banner-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.cookie-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.cookie-close:hover {
  background: #f0f4f8;
  color: var(--text);
}

/* Cookie Settings Panel */
.cookie-settings {
  border-top: 1px solid #eef2f6;
  background: #fafafa;
  padding: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.cookie-settings-content {
  max-width: 800px;
}

.cookie-settings-content h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.cookie-settings-content > p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-setting-item {
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.cookie-setting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-setting-header label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  margin: 0;
}

.cookie-setting-header strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.cookie-setting-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Toggle Switch */
.cookie-setting-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  margin-left: 16px;
}

.cookie-setting-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-setting-toggle input:checked + .toggle-slider {
  background-color: var(--brand);
}

.cookie-setting-toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.cookie-setting-toggle input:disabled + .toggle-slider {
  background-color: #e2e8f0;
  cursor: not-allowed;
}

.cookie-setting-toggle input:disabled + .toggle-slider:before {
  background-color: #f1f5f9;
}

.cookie-settings-actions {
  margin-top: 24px;
  text-align: right;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .cookie-setting-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-setting-toggle {
    margin-left: 0;
  }
}

