/* ── Segment Landing Pages — Shared Styles ─────────────── */
/* Designed to extend landing.css with segment-specific patterns */

.seg-hero {
  min-height: 60vh;
  display: flex; align-items: center;
  padding: 8rem 0 3rem;
  position: relative; overflow: hidden;
}
.seg-hero::before {
  content: ''; position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.seg-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative; z-index: 1;
}
.seg-hero-content { max-width: 560px; }
.seg-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--emerald-100);
  color: var(--sage-dark);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
html.dark .seg-hero-badge { background: var(--emerald-800); color: var(--emerald-200); }
.seg-hero h1 {
  font-size: 2.75rem; font-weight: 900;
  line-height: 1.15; margin-bottom: 1.25rem;
  color: var(--earth);
}
.seg-hero h1 span { color: var(--emerald-600); }
.seg-hero p {
  font-size: 1.15rem; color: var(--earth-mid);
  margin-bottom: 2rem; line-height: 1.7;
}
.seg-hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.seg-hero-visual {
  display: flex; justify-content: center; align-items: center;
  font-size: 8rem; filter: drop-shadow(0 20px 40px rgba(16,185,129,0.15));
}

/* ── Pain Cards ─────────────────────────────────────── */
.pain-section { padding: 4rem 0; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.pain-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}
html.dark .pain-card { background: var(--emerald-900); border-color: var(--emerald-700); }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pain-card .pain-emoji { font-size: 1.75rem; margin-bottom: 0.75rem; }
.pain-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--earth);
  margin-bottom: 0.5rem;
}
.pain-card p { font-size: 0.9rem; color: var(--earth-mid); line-height: 1.5; }

/* ── Solution Cards ─────────────────────────────────── */
.solution-section { padding: 4rem 0; background: var(--gray-50); }
html.dark .solution-section { background: var(--emerald-900); }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.solution-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--emerald-100);
  transition: all 0.3s ease;
}
html.dark .solution-card { background: var(--emerald-800); border-color: var(--emerald-600); }
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--emerald-400); }
.solution-card .sol-num {
  display: inline-flex; width: 36px; height: 36px;
  background: var(--emerald-600); color: white;
  border-radius: 50%; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; margin-bottom: 1rem;
}
.solution-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.solution-card p { font-size: 0.95rem; color: var(--earth-mid); line-height: 1.6; }
.solution-card .sol-code {
  background: var(--gray-50); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; margin-top: 1rem;
  font-family: monospace; font-size: 0.8rem; color: var(--emerald-700);
  border: 1px solid var(--gray-200);
}
html.dark .solution-card .sol-code { background: var(--emerald-900); color: var(--emerald-300); border-color: var(--emerald-700); }

/* ── Catalog Table ──────────────────────────────────── */
.catalog-table {
  width: 100%; border-collapse: collapse;
  margin-top: 2rem; font-size: 0.9rem;
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
html.dark .catalog-table { background: var(--emerald-800); }
.catalog-table th {
  text-align: left; padding: 1rem;
  background: var(--emerald-50); color: var(--emerald-700);
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.05em;
}
html.dark .catalog-table th { background: var(--emerald-900); color: var(--emerald-300); }
.catalog-table td { padding: 0.75rem 1rem; border-top: 1px solid var(--gray-100); color: var(--earth); }
html.dark .catalog-table td { border-top-color: var(--emerald-700); }
.catalog-table tr:hover td { background: var(--emerald-50); }
html.dark .catalog-table tr:hover td { background: rgba(16,185,129,0.08); }

/* ── Scenario Flow ──────────────────────────────────── */
.scenario-section { padding: 4rem 0; }
.scenario-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.scenario-block {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; border: 1px solid var(--gray-200);
  position: relative;
}
html.dark .scenario-block { background: var(--emerald-800); border-color: var(--emerald-700); }
.scenario-block .time-badge {
  display: inline-block; background: var(--clay); color: white;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; margin-bottom: 0.75rem;
}
.scenario-block h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.scenario-block p { font-size: 0.85rem; color: var(--earth-mid); line-height: 1.5; }

/* ── Why Table ──────────────────────────────────────── */
.why-table {
  width: 100%; border-collapse: collapse; margin-top: 2rem;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
}
html.dark .why-table { background: var(--emerald-800); }
.why-table th {
  text-align: left; padding: 1rem;
  background: var(--emerald-600); color: white;
  font-weight: 700; font-size: 0.85rem;
}
.why-table td { padding: 1rem; border-top: 1px solid var(--gray-100); color: var(--earth); }
html.dark .why-table td { border-top-color: var(--emerald-700); }
.why-table td:first-child { font-weight: 700; font-size: 0.9rem; }
.why-table tr:hover td { background: var(--emerald-50); }
html.dark .why-table tr:hover td { background: rgba(16,185,129,0.08); }

/* ── CTA Strip ──────────────────────────────────────── */
.cta-strip {
  padding: 5rem 0; text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--emerald-50) 100%);
}
html.dark .cta-strip { background: linear-gradient(180deg, var(--emerald-900) 0%, var(--emerald-800) 100%); }
.cta-strip h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-strip p { color: var(--earth-mid); max-width: 600px; margin: 0 auto 2rem; }
.cta-strip .cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────── */
footer {
  padding: 3rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
html.dark footer { background: var(--emerald-900); }
footer .container {
  text-align: center;
  color: var(--earth-mid);
  font-size: 0.85rem;
}
footer a { color: var(--emerald-600); }

/* ── Segment Cards (index listing) ──────────────────── */
.segmen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.segmen-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}
.segmen-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-400);
}
.segmen-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.segmen-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--earth);
  margin-bottom: 0.5rem;
}
.segmen-card p {
  font-size: 0.9rem;
  color: var(--earth-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.segmen-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--emerald-600);
  font-weight: 700;
  font-size: 0.85rem;
}
/* Dark mode */
html.dark .segmen-card {
  background: var(--emerald-900);
  border-color: var(--emerald-700);
}
html.dark .segmen-card:hover {
  border-color: var(--emerald-400);
}
html.dark .segmen-card h3 { color: var(--earth); }
html.dark .segmen-card p { color: var(--emerald-200); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .seg-hero .container { grid-template-columns: 1fr; text-align: center; }
  .seg-hero-content { max-width: 100%; }
  .seg-hero h1 { font-size: 2rem; }
  .seg-hero-visual { display: none; }
  .seg-hero-cta { justify-content: center; }
  .pain-grid, .solution-grid, .scenario-flow { grid-template-columns: 1fr; }
  .catalog-table { font-size: 0.78rem; }
  .catalog-table th, .catalog-table td { padding: 0.6rem 0.5rem; }
  .segmen-grid { grid-template-columns: 1fr; }
}
