/* ─── Inner Pages Design System ──────────────────────────────────────────── */
/* Applies to all 15 feature/location/comparison pages                        */

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

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --g1: #14532D;
  --g2: #166534;
  --g3: #15803d;
  --g4: #16A34A;
  --g5: #22C55E;
  --g-light: #f0fdf4;
  --g-mid: #dcfce7;
  --text: #111827;
  --text-2: #374151;
  --text-3: #6B7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.14);
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.ip-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* HERO                                                                         */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f3d21 0%, #14532D 40%, #166534 75%, #15803d 100%);
  padding: 96px 24px 80px;
  color: #fff;
  text-align: center;
}

/* mesh dot overlay */
.ip-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* bottom fade into page */
.ip-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(15,61,33,.4));
  pointer-events: none;
}

.ip-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.ip-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}

.ip-hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--g5);
  border-radius: 50%;
  flex-shrink: 0;
}

.ip-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 20px;
}

.ip-hero h1 .hl {
  background: linear-gradient(90deg, #86efac, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ip-hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin: 0 auto 36px;
}

.ip-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.ip-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--g1);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.ip-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.ip-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}

.ip-btn-ghost:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
}

.ip-hero-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ip-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}

.ip-hero-chip i { color: var(--g5); font-size: 10px; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* BREADCRUMB                                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  font-size: 13px;
}

.ip-breadcrumb-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ip-breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .15s;
}

.ip-breadcrumb a:hover { color: var(--g2); }

.ip-breadcrumb-sep {
  color: var(--text-3);
  opacity: .5;
  margin: 0 2px;
}

.ip-breadcrumb-current {
  color: var(--g2);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* STATS STRIP                                                                  */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-stats {
  background: var(--g1);
  padding: 32px 24px;
}

.ip-stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.ip-stat {
  text-align: center;
  padding: 12px 40px;
  border-right: 1px solid rgba(255,255,255,.15);
}

.ip-stat:last-child { border-right: none; }

.ip-stat-val {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
}

.ip-stat-val span { color: var(--g5); }

.ip-stat-lbl {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .ip-stat {
    padding: 12px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex: 1 1 45%;
  }
  .ip-stat:last-child { border-bottom: none; }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* SECTIONS                                                                     */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-section {
  padding: 72px 24px;
}

.ip-section-alt {
  background: var(--g-light);
  padding: 72px 24px;
}

.ip-section-dark {
  background: var(--g1);
  padding: 72px 24px;
  color: #fff;
}

.ip-section-white {
  background: var(--white);
  padding: 72px 24px;
}

/* ── Section Heading ─────────────────────────────────────────────────────── */
.ip-heading {
  margin-bottom: 48px;
}

.ip-heading-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g4);
  margin-bottom: 10px;
}

.ip-section-dark .ip-heading-eyebrow {
  color: var(--g5);
}

.ip-heading h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--g1);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}

.ip-section-dark .ip-heading h2 {
  color: #fff;
}

.ip-heading-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 640px;
}

.ip-section-dark .ip-heading-sub {
  color: rgba(255,255,255,.75);
}

/* ── Prose Text ──────────────────────────────────────────────────────────── */
.ip-prose {
  max-width: 720px;
}

.ip-prose p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
  margin: 0 0 20px;
}

.ip-prose p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* FEATURE CARDS GRID                                                           */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.ip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.ip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g4), var(--g5));
}

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

.ip-card-icon {
  width: 44px;
  height: 44px;
  background: var(--g-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--g2);
}

.ip-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--g1);
  margin: 0 0 10px;
  line-height: 1.3;
}

.ip-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

/* ── Numbered criteria cards ────────────────────────────────────────────── */
.ip-criteria {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ip-criterion {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow .2s;
}

.ip-criterion:hover {
  box-shadow: var(--shadow-md);
}

.ip-criterion-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--g1), var(--g3));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.ip-criterion-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--g1);
  margin: 0 0 12px;
}

.ip-criterion-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 10px;
}

.ip-criterion-body p:last-child { margin-bottom: 0; }

.ip-criterion-note {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* SPLIT LAYOUT (text + screenshot)                                             */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ip-split-reverse { direction: rtl; }
.ip-split-reverse > * { direction: ltr; }

.ip-split-text h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--g1);
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -.02em;
}

.ip-split-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  margin: 0 0 16px;
}

.ip-split-text p:last-child { margin-bottom: 0; }

.ip-split-img {
  position: relative;
}

.ip-split-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

.ip-split-img-caption {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .ip-split, .ip-split-reverse {
    grid-template-columns: 1fr;
    gap: 36px;
    direction: ltr;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* COMPARISON TABLE                                                             */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.ip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.ip-table thead tr {
  background: linear-gradient(135deg, var(--g1), var(--g2));
}

.ip-table thead th {
  padding: 16px 20px;
  color: #fff;
  font-weight: 700;
  text-align: left;
  font-size: 13px;
  letter-spacing: .03em;
}

.ip-table thead th:not(:first-child) {
  text-align: center;
}

.ip-table tbody tr:nth-child(odd) {
  background: var(--white);
}

.ip-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.ip-table tbody tr:hover {
  background: var(--g-light);
}

.ip-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.ip-table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
}

.ip-table tbody td:not(:first-child) {
  text-align: center;
}

.ip-table .bad  { color: #DC2626; font-weight: 500; }
.ip-table .mid  { color: #D97706; font-weight: 500; }
.ip-table .good { color: #16A34A; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* SCENARIO BOX                                                                 */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-scenario {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-radius: var(--radius);
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ip-scenario::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ip-scenario-inner { position: relative; z-index: 1; }

.ip-scenario-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
}

.ip-scenario h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
}

.ip-scenario p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  margin: 0 0 14px;
}

.ip-scenario p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* FAQ                                                                          */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.ip-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .2s;
}

.ip-faq-item:hover {
  box-shadow: var(--shadow);
}

.ip-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.ip-faq-q:hover { color: var(--g2); }

.ip-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--g-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g2);
  font-size: 12px;
  transition: transform .2s, background .2s;
}

.ip-faq-item.open .ip-faq-icon {
  transform: rotate(45deg);
  background: var(--g1);
  color: #fff;
}

.ip-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.ip-faq-item.open .ip-faq-a {
  max-height: 600px;
}

.ip-faq-a-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* CHECKLIST                                                                    */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-checklist {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.ip-checklist h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--g1);
  margin: 0 0 20px;
}

.ip-checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ip-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.ip-checklist-item:last-child { border-bottom: none; }

.ip-checklist-item::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--g-light);
  border: 2px solid var(--g4);
  border-radius: 5px;
  margin-top: 1px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* CTA BAND                                                                     */
/* ─────────────────────────────────────────────────────────────────────────── */
.ip-cta {
  background: linear-gradient(135deg, #0f3d21, var(--g1), var(--g2));
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ip-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.ip-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.ip-cta-pre {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g5);
  margin-bottom: 12px;
}

.ip-cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}

.ip-cta p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin: 0 0 32px;
  line-height: 1.65;
}

.ip-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* UTILITY CLASSES                                                              */
/* ─────────────────────────────────────────────────────────────────────────── */

/* Heading shorthand used by transform script */
.ip-h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  color: var(--g1);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}

.ip-section-dark .ip-h2 { color: #fff; }

.ip-section-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 40px;
}

/* Screenshot image */
.ip-screenshot {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Plain white cards (no border-left) — still get modern shadow */
.ip-cards > div[style*="background:#fff"][style*="border-radius"] {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  border: 1px solid var(--border) !important;
  transition: transform .2s, box-shadow .2s !important;
  position: relative !important;
  overflow: hidden !important;
}

.ip-cards > div[style*="background:#fff"][style*="border-radius"]::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g4), var(--g5));
}

.ip-cards > div[style*="background:#fff"][style*="border-radius"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Prose paragraphs - remove leftover inline styles */
.ip-prose p[style],
.ip-section p[style*="font-size:16px"],
.ip-section-alt p[style*="font-size:16px"] {
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: var(--text-2) !important;
}

/* Criteria flex wrapper */
.ip-criterion-flex {
  width: 100%;
}

.ip-criterion-body { flex: 1; }
.ip-criterion-body strong { color: var(--g1); }
.ip-criterion-body em { font-style: italic; color: var(--text-3); }

/* ─────────────────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ip-hero { padding: 72px 20px 64px; }
  .ip-hero h1 { font-size: 30px; }
  .ip-hero-desc { font-size: 16px; }
  .ip-section, .ip-section-alt, .ip-section-dark, .ip-section-white { padding: 52px 20px; }
  .ip-cards { grid-template-columns: 1fr; }
  .ip-scenario { padding: 28px 24px; }
  .ip-criterion { flex-direction: column; gap: 12px; }
  .ip-cta { padding: 60px 20px; }
  .ip-stat-val { font-size: 26px; }
  .ip-heading h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .ip-hero-actions { flex-direction: column; align-items: center; }
  .ip-btn-primary, .ip-btn-ghost { width: 100%; justify-content: center; max-width: 320px; }
  .ip-cta-actions { flex-direction: column; align-items: center; }
}
