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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 960px;
}

/* ── Header ── */
.site-header {
  padding: 32px 0;
  border-bottom: 1px solid #e5e5e5;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  color: #666;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #1a1a1a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: #1a1a1a;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  color: #1a1a1a;
  background: transparent;
  border: 1px solid #d4d4d4;
}

.btn-secondary:hover {
  border-color: #999;
}

/* ── Mobile Nav ── */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bar {
  position: relative;
  width: 16px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
}

.nav-toggle-bar::before { transform: translateY(-5px); }
.nav-toggle-bar::after { transform: translateY(5px); }

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
}

.hero-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #555;
  background: #eee;
  border-radius: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #111;
}

.hero p {
  margin-top: 20px;
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.hero .button-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* ── Section ── */
.section {
  padding: 64px 0;
  border-top: 1px solid #e5e5e5;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}

.section-desc {
  margin-top: 8px;
  color: #666;
  max-width: 540px;
}

/* ── Feature List ── */
.features {
  margin-top: 40px;
  display: grid;
  gap: 32px;
}

.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.feature-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #999;
  background: #f0f0f0;
  border-radius: 12px;
  flex-shrink: 0;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Steps (card fallback) ── */
.steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.step-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: #999;
  margin-bottom: 12px;
}

/* ── Steps Showcase (3-col with screenshots) ── */
.steps-showcase {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-col {
  display: flex;
  flex-direction: column;
}

.step-col .step-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: #999;
  margin-bottom: 8px;
}

.step-col h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-col > p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
  min-height: 2.8em;
  margin-bottom: 12px;
}

.step-screenshot {
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-top: auto;
}

.step-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Providers ── */
.providers {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.provider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.provider img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.provider span {
  color: #999;
  font-weight: 400;
  font-size: 0.82rem;
  margin-left: 4px;
}

/* ── Comparison ── */
.comparison {
  margin-top: 40px;
  overflow-x: auto;
}

.comparison table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison th,
.comparison td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

.comparison th {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
}

.comparison td {
  color: #555;
}

.comparison td:first-child {
  color: #1a1a1a;
  font-weight: 600;
}

.comparison .yes {
  color: #1a1a1a;
  font-weight: 600;
}

.comparison .no {
  color: #bbb;
}

/* ── FAQ ── */
.faq-list {
  margin-top: 32px;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.faq-item summary {
  list-style: none;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.faq-item summary::after {
  content: "+";
  color: #bbb;
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-body {
  padding-bottom: 16px;
  color: #666;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── CTA ── */
.cta {
  padding: 64px 0;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.cta h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta p {
  margin: 12px auto 0;
  max-width: 480px;
  color: #666;
}

.cta .button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ── Footer ── */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid #e5e5e5;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #999;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #999;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #1a1a1a;
}

/* ── Blog List ── */
.blog-list {
  margin-top: 32px;
}

.blog-year {
  font-size: 0.82rem;
  font-weight: 600;
  color: #999;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.blog-year:first-child {
  margin-top: 0;
}

.blog-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
}

.blog-date {
  font-size: 0.82rem;
  color: #bbb;
  flex-shrink: 0;
  min-width: 80px;
  font-variant-numeric: tabular-nums;
}

.blog-item a {
  font-size: 0.95rem;
  color: #1a1a1a;
  transition: color 0.15s;
}

.blog-item a:hover {
  color: #666;
}

/* ── Blog Article ── */
.article-header {
  padding: 64px 0 32px;
}

.article-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-meta {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #999;
}

.article-body {
  padding-bottom: 64px;
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
}

.article-body p {
  margin-bottom: 16px;
  color: #333;
}

.article-body ul,
.article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #333;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  background: #f0f0f0;
  border-radius: 4px;
}

.article-body pre {
  margin-bottom: 16px;
  padding: 16px 20px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

.article-body pre code {
  padding: 0;
  background: none;
}

.article-body a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
}

.article-body a:hover {
  text-decoration-color: #1a1a1a;
}

.article-body blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  border-left: 3px solid #e5e5e5;
  color: #666;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #999;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.back-link:hover {
  color: #1a1a1a;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 8px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-screenshot {
    max-width: 320px;
  }

  .providers {
    flex-direction: column;
  }
}
