/* ══════════════════════════════════════════════════════
   Insynctive GEO Landing Pages — Shared Stylesheet
   ══════════════════════════════════════════════════════ */

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

:root {
  --blue-primary: #2B6CA3;
  --blue-dark: #26417B;
  --blue-accent: #21ADF0;
  --blue-nav: #273B7B;
  --blue-mid: #3289C7;
  --text-color: #2F2E2E;
  --text-light: #555;
  --bg-white: #ffffff;
  --bg-light: #f7f9fc;
  --bg-blue-gradient: linear-gradient(135deg, #26417B 0%, #2B6CA3 100%);
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --max-width: 960px;
}

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

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ────────────────────────────────────── */
.site-nav {
  background: var(--blue-nav);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav__logo {
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-nav__links { display: flex; gap: 2rem; align-items: center; }
.site-nav__links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.site-nav__links a:hover { opacity: 1; }
.site-nav__cta {
  background: var(--blue-accent);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 24px;
  font-weight: 600 !important;
  opacity: 1 !important;
  transition: background 0.2s !important;
}
.site-nav__cta:hover { background: #1b9ad8; }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: var(--bg-blue-gradient);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero__sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.0625rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Section layout ───────────────────────────────── */
.content-section {
  padding: 3.5rem 2rem;
}
.content-section--alt {
  background: var(--bg-light);
}
.content-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Typography ────────────────────────────────────── */
h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
p {
  margin-bottom: 1rem;
  color: var(--text-color);
}
.lead-paragraph {
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* ── Compliance Table ──────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.compliance-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9375rem;
}
.compliance-table thead {
  background: var(--blue-dark);
}
.compliance-table th {
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  white-space: nowrap;
}
.compliance-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}
.compliance-table tbody tr:nth-child(even) {
  background: var(--bg-light);
}
.compliance-table tbody tr:hover {
  background: #eef4fb;
}
.compliance-table .penalty-cell {
  color: #c53030;
  font-weight: 600;
}
.compliance-table .feature-cell {
  color: var(--blue-primary);
  font-weight: 600;
}

/* ── Module Cards ──────────────────────────────────── */
.module-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--blue-accent);
}
.module-header__icon {
  width: 48px;
  height: 48px;
  background: var(--bg-blue-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.module-header__icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* ── Key fact callouts ─────────────────────────────── */
.penalty-callout {
  background: #fff5f5;
  border-left: 4px solid #c53030;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}
.penalty-callout strong {
  color: #c53030;
}

/* ── CTA Banner ────────────────────────────────────── */
.cta-banner {
  background: var(--bg-blue-gradient);
  padding: 3rem 2rem;
  text-align: center;
}
.cta-banner__inner {
  max-width: 640px;
  margin: 0 auto;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.5rem;
}
.cta-button {
  display: inline-block;
  background: var(--blue-accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.cta-button:hover {
  background: #1b9ad8;
  transform: translateY(-1px);
}

/* ── Internal Links ───────────────────────────────── */
.internal-links {
  list-style: none;
  padding: 0;
}
.internal-links li {
  margin-bottom: 0.5rem;
}
.internal-links a {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.internal-links a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  background: var(--blue-nav);
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.8125rem;
}
.site-footer p {
  color: #fff;
}
.site-footer a {
  color: var(--blue-accent);
  text-decoration: none;
}

/* ── Jump Nav ──────────────────────────────────────── */
.jump-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  position: sticky;
  top: 64px;
  z-index: 90;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.jump-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
}
.jump-nav a {
  color: var(--blue-primary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.jump-nav a:hover {
  border-bottom-color: var(--blue-accent);
}

/* ── Direct Answer ────────────────────────────────── */
.direct-answer {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--blue-accent);
}

/* ── Ranked Items (Listicle) ─────────────────────── */
.ranked-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.ranked-item:last-child { border-bottom: none; }
.ranked-item__number {
  width: 40px;
  height: 40px;
  background: var(--bg-blue-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ranked-item__content { flex: 1; }
.ranked-item__content h3 { margin-top: 0; color: var(--blue-dark); }

/* ── Comparison Table ────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9375rem;
}
.comparison-table thead { background: var(--blue-dark); }
.comparison-table th {
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 0.875rem 1rem;
}
.comparison-table th:first-child { text-align: left; }
.comparison-table__brand { background: var(--blue-primary); }
.comparison-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  vertical-align: middle;
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-color);
}
.comparison-cell--yes {
  color: #2f855a;
  font-weight: 700;
  font-size: 1.125rem;
}
.comparison-cell--no {
  color: #c53030;
  font-weight: 700;
  font-size: 1.125rem;
}
.comparison-table tbody tr:nth-child(even) { background: var(--bg-light); }
.comparison-table tbody tr:hover { background: #eef4fb; }

/* ── When To Choose ──────────────────────────────── */
.when-to-choose {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
}
.when-to-choose h3 { color: var(--blue-dark); margin-top: 0; }

/* ── Mid-Content CTA ─────────────────────────────── */
.cta-inline {
  text-align: center;
  padding: 2rem;
  margin: 2rem 0;
  background: var(--bg-light);
  border-radius: var(--radius);
}
.cta-inline p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* ── Hub Cards ─────────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.hub-card {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
.hub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-accent);
}
.hub-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin: 0 0 0.5rem;
}
.hub-card__desc {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* ── Checklist Items (Buyer's Guide) ─────────────── */
.checklist-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item__marker {
  width: 32px;
  height: 32px;
  background: #2f855a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.checklist-item__content { flex: 1; }
.checklist-item__content h3 { margin-top: 0; }
.checklist-item__maps-to {
  background: var(--bg-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--blue-accent);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}

/* ── ROI Metrics ──────────────────────────────────── */
.roi-metric {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.roi-metric:last-child { border-bottom: none; }
.roi-metric__value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
}
.roi-metric__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-bottom: 0.5rem;
}

/* ── Integration Details ─────────────────────────── */
.integration-detail {
  background: var(--bg-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--blue-accent);
  margin: 1rem 0;
}
.integration-detail h3 { margin-top: 0; }
.integration-detail p:last-child { margin-bottom: 0; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav__links { display: none; }
  .content-section { padding: 2.5rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .jump-nav { top: 64px; padding: 0.75rem 1rem; }
  .jump-nav__inner { gap: 1rem; }
  .module-header__icon { width: 40px; height: 40px; }
  .ranked-item { gap: 0.75rem; padding: 1rem 0; }
  .ranked-item__number { width: 32px; height: 32px; font-size: 0.875rem; }
  .comparison-table { min-width: 500px; }
  .direct-answer { padding: 1rem; }
  .cta-inline { padding: 1.5rem 1rem; margin: 1.5rem 0; }
  .when-to-choose { padding: 1rem; }
  .hub-grid { grid-template-columns: 1fr; }
  .checklist-item { gap: 0.75rem; }
  .checklist-item__marker { width: 28px; height: 28px; font-size: 0.75rem; }
  .checklist-item__maps-to { padding: 0.5rem 0.75rem; }
  .integration-detail { padding: 1rem; }
}

/* ── Accessibility ─────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
