/*
Theme Name: GardenPlant AI Theme
Theme URI: https://gardenplantai.org
Author: GardenPlant AI Team
Description: Modern Agricultural SaaS & AI Tools Theme for GardenPlant AI platform.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-900: #0b2519;
  --primary-800: #1b4332;
  --primary-700: #2d6a4f;
  --primary-600: #40916c;
  --primary-500: #52b788;
  --primary-400: #74c69d;
  --primary-300: #95d5b2;
  --primary-200: #b7e4c7;
  --primary-100: #d8f3dc;
  --primary-50:  #f4faf6;

  --accent-gold: #e9c46a;
  --accent-earth: #8a5a44;
  --accent-terra: #e76f51;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --bg-main: #f8faf8;
  --card-bg: #ffffff;
  --card-border: rgba(45, 106, 79, 0.12);
  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.04);
  --shadow-md: 0 8px 24px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 16px 36px rgba(27, 67, 50, 0.12);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary-700);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-600);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-900);
}

.site-logo span {
  color: var(--primary-600);
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-700);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-700);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-600);
  border-radius: 4px;
}

.nav-cta {
  background: var(--primary-700);
  color: white !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.25);
  transition: var(--transition-fast);
}

.nav-cta:hover {
  background: var(--primary-800);
  transform: translateY(-1px);
}

/* Layout Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.hero-section {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(180deg, #e8f5ed 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--card-border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-headline {
  font-size: 3.2rem;
  color: var(--primary-900);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subheading {
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary-700);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.25);
  transition: var(--transition-fast);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: white;
  color: var(--slate-800);
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  border: 1.5px solid var(--slate-200);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--primary-500);
  color: var(--primary-800);
  background: var(--primary-50);
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tool-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
  opacity: 0;
  transition: var(--transition-fast);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-100);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.tool-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.tool-description {
  color: var(--slate-600);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.tool-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Form Controls & Tool Inputs */
.tool-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
}

.form-control, select, textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-200);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate-800);
  background: white;
  transition: var(--transition-fast);
}

.form-control:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Multi-Select Pills */
.plant-pills-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.plant-pill {
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  background: var(--slate-100);
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.plant-pill:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

.compat-hero {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}

.compat-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.35rem 0 0.75rem; }
.compat-hero p { color: var(--slate-600); font-size: 1.08rem; }
.eyebrow, .step-label { color: var(--primary-700); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.section-heading { margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0.25rem 0 0.4rem; }
.section-heading p, .form-note, .selection-status { color: var(--slate-600); font-size: 0.92rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--slate-500); font-size: 0.86rem; margin-bottom: 1.5rem; }
.breadcrumbs a { font-weight: 700; }
.plant-category { width: 100%; margin-bottom: 1rem; }
.plant-category h3 { font-size: 1rem; margin-bottom: 0.55rem; }
.plant-category-items { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.plant-pill { min-height: 44px; }
.selection-status { margin-top: 0.85rem; font-weight: 700; }
.checker-submit { width: 100%; justify-content: center; }
.form-note { margin-top: 0.75rem; text-align: center; }
.content-stack { max-width: 900px; margin: 4rem auto 0; }
.content-stack > section { margin-bottom: 3rem; }
.content-stack h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.content-stack h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.content-stack p { color: var(--slate-600); }
.process-list { padding-left: 1.35rem; color: var(--slate-600); display: grid; gap: 0.45rem; }
.factor-grid, .pair-grid, .related-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.factor-grid > div, .pair-grid > div, .related-tools a { background: white; border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 1.2rem; }
.pair-grid p, .related-tools p { font-size: 0.92rem; margin-bottom: 0.75rem; }
.text-link { font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--card-border); border-radius: var(--radius-sm); background: white; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table-wrap th, .table-wrap td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--slate-100); text-align: left; vertical-align: top; }
.table-wrap th { color: var(--slate-800); }
.table-wrap td { color: var(--slate-600); }
.faq-section details { border-bottom: 1px solid var(--slate-200); padding: 1rem 0; }
.faq-section summary { cursor: pointer; font-weight: 800; color: var(--slate-800); }
.faq-section details p { margin-top: 0.65rem; }
.about-tool { margin-top: 1.25rem; }
.landing-page { max-width: 980px; }
.landing-header { max-width: 780px; margin-bottom: 2.5rem; }
.landing-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.35rem 0 0.8rem; }
.landing-header p, .landing-copy { color: var(--slate-600); font-size: 1.05rem; }
.landing-section { margin-bottom: 3rem; }
.landing-section h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }
.landing-section h3 { margin-top: 1.3rem; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 1.3rem 0; }
.spec-grid > div { display: grid; gap: 0.25rem; background: white; border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 1rem; }
.spec-grid strong { color: var(--slate-700); font-size: 0.8rem; text-transform: uppercase; }
.spec-grid span { font-weight: 700; }
.landing-cta { background: var(--primary-50); border: 1px solid var(--primary-200); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 2rem; }
.comparison-table { overflow-x: auto; }
.comparison-table > div { display: grid; grid-template-columns: 1.1fr 1fr 1fr; min-width: 560px; }
.comparison-table > div > * { padding: 0.8rem; border-bottom: 1px solid var(--slate-200); }
.comparison-table strong { background: var(--slate-50); }

@media (max-width: 600px) {
  .tool-form-card, .results-card { padding: 1.25rem; border-radius: var(--radius-md); }
  .factor-grid, .pair-grid, .related-tools { grid-template-columns: 1fr; }
  .compat-hero p { font-size: 1rem; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.plant-pill:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
}

.plant-pill.selected {
  background: var(--primary-700);
  color: white;
  border-color: var(--primary-800);
  box-shadow: 0 3px 10px rgba(45, 106, 79, 0.2);
}

/* Tool Results Render Panel */
.results-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--slate-100);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.action-bar {
  display: flex;
  gap: 0.6rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* Progress / Loading Animation */
.loading-box {
  text-align: center;
  padding: 4rem 2rem;
}

.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--primary-100);
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Compatibility Meters */
.score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--primary-900);
  color: white;
  box-shadow: var(--shadow-md);
}

.score-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.score-denom {
  font-size: 0.75rem;
  opacity: 0.75;
}

.factor-bar-group {
  margin-bottom: 1.25rem;
}

.factor-bar-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.factor-track {
  height: 10px;
  background: var(--slate-100);
  border-radius: 10px;
  overflow: hidden;
}

.factor-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
  border-radius: 10px;
  transition: width 0.8s ease-out;
}

/* Interactive Garden Grid Canvas */
.garden-grid-canvas {
  display: grid;
  gap: 12px;
  background: #2b1e16; /* Earth brown soil background */
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 4px solid #1a120c;
  overflow-x: auto;
}

.grid-cell {
  background: #3e2c20;
  border: 2px dashed #5c4433;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  min-width: 140px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);

}

.grid-cell:hover {
  border-color: var(--primary-400);
  background: #4a3628;
}

.cell-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.cell-name {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 0.95rem;
}

.cell-meta {
  color: #a7f3d0;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

/* Plant Directory Card Grid */
.plant-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

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

/* Print Styles */
@media print {
  .site-header, .site-footer, .action-bar, .tool-form-card, .btn-primary {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .results-card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-headline { font-size: 2.2rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  /* Mobile nav: show toggle button, collapse menu */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    gap: 0;
    z-index: 200;
  }
  .nav-menu.nav-menu--open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--slate-100); }
  .nav-menu li:last-child { border-bottom: none; margin-top: 0.5rem; }
  .nav-link { display: block; padding: 0.75rem 0; font-size: 1rem; }
  .nav-cta { display: block; text-align: center; margin-top: 0.25rem; }
  .site-header { position: relative; }
  .header-container { position: relative; }
}

/* Mobile nav toggle button (hamburger) */
.nav-toggle {
  display: none; /* hidden on desktop, shown via media query */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Toast notification system */
#gp-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none;
}
.gp-toast {
  background: var(--slate-800);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}
.gp-toast--visible { opacity: 1; transform: translateY(0); }
.gp-toast--success { background: var(--primary-800); }
.gp-toast--error { background: #991b1b; }
.gp-toast--info { background: var(--slate-800); }

/* Results: CLS reservation - prevents layout shift when results appear */
#compat-results:not([hidden]) { min-height: 200px; }

/* Result section layouts */
.score-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.score-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 130px;
}
.score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--primary-900);
  color: white;
  box-shadow: var(--shadow-md);
}
.score-badge.score-excellent { background: linear-gradient(135deg, var(--primary-700), var(--primary-900)); }
.score-badge.score-good      { background: linear-gradient(135deg, #2563eb, #1e3a5f); }
.score-badge.score-mixed     { background: linear-gradient(135deg, #d97706, #92400e); }
.score-badge.score-poor      { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.verdict-label { font-weight: 800; font-size: 1.1rem; color: var(--slate-900); text-align: center; }
.verdict-sub   { font-size: 0.8rem; color: var(--slate-500); text-align: center; }
.breakdown-panel h3 { font-size: 1.1rem; margin-bottom: 0.85rem; }
.result-eyebrow {
  display: inline-block;
  background: var(--primary-700);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.results-title { font-size: 1.7rem; margin-top: 0.3rem; }

/* Color-coded factor fill bars */
.factor-fill.fill-good { background: linear-gradient(90deg, var(--primary-500), var(--primary-700)); }
.factor-fill.fill-ok   { background: linear-gradient(90deg, #f59e0b, #d97706); }
.factor-fill.fill-poor { background: linear-gradient(90deg, #f87171, #dc2626); }

/* Result content sections */
.result-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--slate-100);
}
.result-section:last-of-type { border-bottom: none; }
.result-section h3 { font-size: 1.2rem; margin-bottom: 0.65rem; color: var(--slate-900); }
.result-section--warning { background: #fff7ed; border-radius: var(--radius-sm); padding: 1.25rem; border: 1px solid #fed7aa; }
.result-section--warning h3 { color: #9a3412; }
.result-section--muted { background: var(--slate-50); border-radius: var(--radius-sm); padding: 1.25rem; }
.result-list { padding-left: 1.2rem; line-height: 1.75; color: var(--slate-700); display: grid; gap: 0.4rem; }
.result-list--warning { color: #7c2d12; }

/* Pairwise relationship table */
.pairwise-section { margin-bottom: 1.75rem; }
.pairwise-section h3 { font-size: 1.2rem; margin-bottom: 0.85rem; }
.pairwise-table { min-width: 560px; }
.pair-note { font-size: 0.88rem; color: var(--slate-600); }
.rel-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.rel-good    { background: var(--primary-100); color: var(--primary-800); }
.rel-neutral { background: var(--slate-100);    color: var(--slate-700); }
.rel-poor    { background: #fee2e2;             color: #991b1b; }

/* Disclaimer box */
.disclaimer-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--primary-500);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.disclaimer-box strong { color: var(--slate-800); }

/* Results action CTA row */
.results-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
}

/* About-tool card */
.about-tool-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.about-tool-card h2 { margin-bottom: 0.85rem; font-size: 1.6rem; }
.about-tool-card p { color: var(--slate-600); margin-bottom: 0.85rem; line-height: 1.7; }
.about-tool-card p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .tool-form-card, .results-card { padding: 1.25rem; border-radius: var(--radius-md); }
  .factor-grid, .pair-grid, .related-tools { grid-template-columns: 1fr; }
  .compat-hero p { font-size: 1rem; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-layout { grid-template-columns: 1fr; }
  .score-panel { flex-direction: row; gap: 1rem; justify-content: flex-start; }
  .results-cta-row { flex-direction: column; }
  .results-cta-row .btn-primary, .results-cta-row .btn-secondary { width: 100%; justify-content: center; }
  #gp-toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
  .gp-toast { max-width: 100%; }
}
