/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --border: #e5e7eb;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 10px;
  --max-width: 920px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

/* ===== Article ===== */
.article {
  padding: 40px 20px 60px;
}

.article section {
  margin-bottom: 40px;
}

.hero-section {
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid #dbe7ff;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
  margin-bottom: 16px;
  color: var(--text);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* ===== Quick Answer ===== */
.quick-answer {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 28px;
}

.quick-answer-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 14px;
  border: none;
}

.quick-answer ul {
  list-style: none;
  padding-left: 0;
}

.quick-answer li {
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.quick-answer li:last-child {
  border-bottom: none;
}

.quick-answer li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  color: #fff;
}

.cta-banner-alt {
  background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%);
}

.cta-banner-final {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
}

.cta-banner-content h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.cta-banner-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.cta-banner-alt .cta-button {
  color: #92400e;
}

.cta-banner-final .cta-button {
  color: #14532d;
}

.cta-button-large {
  font-size: 1.2rem;
  padding: 16px 40px;
}

/* ===== Service Reviews ===== */
.service-review {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
  background: var(--bg);
  transition: box-shadow 0.2s;
}

.service-review:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.service-review h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.best-for {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

.service-cta {
  margin-top: 20px;
  text-align: center;
}

.service-review .cta-button {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
}

.service-review .cta-button:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ===== Tables ===== */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

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

thead {
  background: var(--text);
}

th {
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

tbody tr:hover {
  background: #eef4ff;
}

/* ===== Checklists ===== */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  padding: 8px 0 8px 8px;
  border-bottom: 1px solid var(--border);
}

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

/* ===== Mistake / Expert blocks ===== */
.mistake-block {
  background: #fef2f2;
  border-left: 4px solid var(--red);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

.mistake-block h3 {
  color: var(--red);
  margin-top: 0;
  font-size: 1.1rem;
}

.expert-block {
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

.expert-block h3 {
  color: var(--green);
  margin-top: 0;
  font-size: 1.1rem;
}

/* ===== FAQ ===== */
#faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

#faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  background: var(--bg-alt);
  list-style: none;
  position: relative;
  padding-right: 44px;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

#faq details[open] summary::after {
  content: "\2212";
}

#faq details p {
  padding: 16px 20px;
  margin-bottom: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 0 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 14px;
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.82rem;
  margin: 0;
}

/* ===== Legal pages ===== */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 36px;
}

.legal-page p, .legal-page li {
  font-size: 0.98rem;
  color: #333;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .hero-section {
    padding: 28px 20px;
  }

  .service-review {
    padding: 20px;
  }

  .cta-banner {
    padding: 28px 20px;
  }

  .cta-banner-content h2 {
    font-size: 1.3rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }
}
