/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }

:root {
  --color-background: #ffffff;
  --color-surface: #f9fafb;
  --color-button: #ffa814;
  --color-button-hover: #000000;
  --color-button-text: #ffffff;
  --color-secondary-button: #ad5700;
  --color-secondary-button-hover: #ffa814;
  --color-secondary-button-text: #ffffff;
  --color-font: #1e293b;
  --color-headers: #1e293b;
  --color-link: #ffa814;
  --color-link-hover: #ffa814;
  --color-border: #e2e8f0;
  --color-accent: #ffa814;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--color-font);
  background: var(--color-background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-headers);
  font-family: var(--font-family);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a {
  color: var(--color-link);
}
a:hover, a:focus {
  color: var(--color-link-hover);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn, button[type="submit"] {
  display: inline-block;
  background: var(--color-button);
  color: var(--color-button-text);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover, button[type="submit"]:hover {
  background: var(--color-button-hover);
  color: var(--color-button-text);
}

.btn-secondary {
  display: inline-block;
  background: var(--color-secondary-button);
  color: var(--color-secondary-button-text);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-secondary:hover {
  background: var(--color-secondary-button-hover);
  color: var(--color-secondary-button-text);
}

.cta-button {
  display: inline-block;
  background: var(--color-button);
  color: var(--color-button-text);
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-button-hover);
  color: var(--color-button-text);
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.footer-logo-link .logo-img {
  height: 32px;
}

/* Responsive */
@media (max-width: 480px) {
  .header-inner, .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .footer-inner { align-items: center; }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1025px) {
  .container { padding: 0 2rem; }
}

/* 404 page */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: 50vh;
}
.not-found-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-accent);
  margin: 0 0 0.25em;
  line-height: 1;
}
.not-found .btn {
  margin-top: 0.5rem;
}

/* Article page additions */
.article-page h1 {
  font-size: 2rem;
  margin-top: 1.5rem;
}

.page-title-section {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.toc-box {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.toc-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-headers);
}
.toc-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  color: var(--color-link);
  font-weight: 600;
}
.toc-list a:hover { color: var(--color-link-hover); }

.intro-section, .article-section, .trust-section, .faq-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.article-section h2, .trust-section h2, .faq-section h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}
.article-section h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.promo-banner {
  display: block;
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
}
.promo-banner img {
  width: 100%;
  border-radius: 8px;
}

.section-image {
  width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-background);
}
table th, table td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
table th {
  background: var(--color-surface);
  color: var(--color-headers);
  font-weight: 700;
}

.bullet-list {
  margin: 1rem 0;
  padding-left: 0;
}
.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.step-list {
  margin: 1rem 0;
  padding-left: 0;
  counter-reset: none;
}
.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.step-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-button);
  color: var(--color-button-text);
  font-weight: 700;
  font-size: 0.85rem;
}
.step-text { padding-top: 0.15rem; }

.cta-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.trust-section {
  background: var(--color-surface);
  border-radius: 8px;
}

.accordion {
  margin-top: 1rem;
}
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  padding: 0.25rem 1rem;
  background: var(--color-background);
}
.accordion-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 0;
  color: var(--color-headers);
}
.accordion-content {
  padding-bottom: 0.75rem;
}
.accordion-content p { margin-bottom: 0; }

.sticky-promo-bar {
  position: sticky;
  bottom: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 0;
  z-index: 10;
}
.sticky-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sticky-promo-text {
  font-weight: 600;
  color: var(--color-font);
}

@media (max-width: 600px) {
  .article-page h1 { font-size: 1.5rem; }
  .sticky-promo-inner { justify-content: center; text-align: center; }
}