:root {
  --color-brand: #0f172a;
  --color-cta: #f97316;
  --text-dark: #1a1a1a;
  --text-body: #333;
  --text-muted: #666;
  --border: #ddd;
  --surface: #fafafa;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  margin: 0;
}

img, svg, video, iframe, canvas {
  max-width: 100%;
  height: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 24px 90px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0f172a;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  color: #fff;
  margin: 0 0 22px;
  font-weight: 700;
  line-height: 1.6;
}

.hero-lede {
  font-size: 1.08rem;
  color: #eaeaea;
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  padding: 15px 34px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background: #e06210;
  transform: translateY(-2px);
  outline: none;
}

.btn-cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.article-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}

.article-section {
  margin: 0 0 64px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-section:last-of-type {
  margin-bottom: 0;
}

.article-section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  color: var(--color-brand);
  margin: 0 0 22px;
  font-weight: 700;
  line-height: 1.6;
}

.article-section h3 {
  font-size: 1.2rem;
  color: var(--color-brand);
  margin: 30px 0 14px;
  font-weight: 700;
  line-height: 1.6;
}

.article-section p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin: 0 0 20px;
  line-height: 1.6;
}

.article-section ul,
.article-section ol {
  margin: 0 0 24px;
  padding-left: 22px;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

.article-section li {
  margin-bottom: 12px;
}

.article-section li strong {
  font-weight: 700;
  color: var(--color-brand);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 8px 0 34px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 22px;
  min-width: 0;
}

.stat-card h3 {
  font-size: 1.08rem;
  margin: 0 0 12px;
  color: var(--color-brand);
  font-weight: 700;
  line-height: 1.6;
}

.stat-card p {
  font-size: 0.98rem;
  margin: 0;
  color: #444;
  line-height: 1.6;
}

.stat-card svg {
  display: block;
  margin-bottom: 16px;
  color: var(--color-brand);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.98rem;
}

table.compare thead th {
  background: var(--color-brand);
  color: #fff;
  text-align: left;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

table.compare tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  line-height: 1.6;
  vertical-align: top;
}

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

table.compare tbody tr:last-child td {
  border-bottom: none;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 34px;
}

.checklist li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px 14px 56px;
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--color-brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.08rem;
  margin: 0 0 12px;
  color: var(--color-brand);
  font-weight: 700;
  line-height: 1.6;
}

.faq-item p {
  margin: 0;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.article-cta {
  background: var(--color-brand);
  color: #fff;
  padding: 52px 32px;
  border-radius: 10px;
  text-align: center;
  margin: 70px 0 0;
}

.article-cta h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.6;
}

.article-cta p {
  color: #eaeaea;
  margin: 0 0 26px;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta h2,
.article-cta p,
.article-cta .btn-cta {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero {
    min-height: 420px;
    padding: 80px 18px 60px;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .hero-lede {
    font-size: 1rem;
    margin-bottom: 26px;
  }
  .btn-cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 14px 24px;
    font-size: 0.98rem;
  }
  .article-wrap {
    padding: 46px 16px 60px;
  }
  .article-section {
    margin-bottom: 46px;
  }
  .article-section h2 {
    font-size: 1.32rem;
    margin-bottom: 18px;
  }
  .article-section h3 {
    font-size: 1.08rem;
  }
  .article-section p,
  .article-section li,
  .article-section ul,
  .article-section ol {
    font-size: 1rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .article-cta {
    padding: 36px 20px;
    margin-top: 50px;
  }
  .checklist li {
    padding: 14px 16px 14px 52px;
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.38rem;
  }
  .article-section h2 {
    font-size: 1.2rem;
  }
  .article-section h3 {
    font-size: 1.02rem;
  }
  table.compare {
    font-size: 0.9rem;
    min-width: 480px;
  }
  table.compare thead th,
  table.compare tbody td {
    padding: 11px 12px;
  }
  .checklist li::before {
    width: 22px;
    height: 22px;
    font-size: 12px;
    left: 14px;
  }
  .checklist li {
    padding-left: 46px;
  }
}

/* ===== TYPOGRAPHY SPACING FIX (APS_ARTICLE_TYPO_REQUIRED_v2) ===== */
/* Defensive guard against universal * { margin: 0 } reset in global.css. */
/* body-scoped via :where() so specificity stays at 0,0,0,1 — beats * but
   loses to any component rule like .tip-box p / .faq-item p. */
body :where(p)              { margin-bottom: 1.1rem; }
body :where(h2)             { margin-top: 2.5rem; margin-bottom: 1rem; }
body :where(h3)             { margin-top: 1.75rem; margin-bottom: 0.75rem; }
body :where(h4)             { margin-top: 1.25rem; margin-bottom: 0.5rem; }
body :where(ul, ol)         { margin-bottom: 1.1rem; padding-left: 1.5rem; }
body :where(li)             { margin-bottom: 0.4rem; }
body :where(blockquote)     { margin: 1.5rem 0; }
