:root {
  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-muted: #edf5f2;
  --text: #1f2a30;
  --text-muted: #4a5a61;
  --primary: #2f7f73;
  --primary-dark: #256459;
  --accent: #efb657;
  --border: #d7e5de;
  --shadow: 0 10px 30px rgba(33, 63, 57, 0.08);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #f6faf8 0%, #f8faf9 100%);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 249, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.2px;
}

.tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.main-nav a {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.hero {
  padding: 3.4rem 0 2.4rem;
}

.hero-panel {
  background: radial-gradient(circle at top right, rgba(239, 182, 87, 0.25), transparent 48%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

p {
  margin-top: 0;
  color: var(--text-muted);
}

.section {
  padding: 1.8rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: 0 5px 15px rgba(33, 63, 57, 0.05);
}

.card p {
  margin-bottom: 0.7rem;
}

.btn {
  display: inline-block;
  padding: 0.62rem 0.95rem;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn:hover,
.btn:focus {
  background: var(--primary-dark);
  text-decoration: none;
}

.muted {
  color: var(--text-muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
  padding: 1rem;
  text-align: center;
}

.stat strong {
  font-size: 1.2rem;
  color: var(--text);
  display: block;
}

.newsletter-box {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--surface);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.newsletter-form input {
  flex: 1 1 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.breadcrumbs {
  font-size: 0.86rem;
  margin: 1.1rem 0;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--primary-dark);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.summary-box,
.takeaways,
.toc,
.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: var(--surface);
  padding: 1rem;
  margin: 1rem 0 1.2rem;
}

.takeaways ul,
.toc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.hero-image {
  margin: 1rem 0 1.2rem;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.2rem;
  font-size: 0.94rem;
  background: var(--surface);
}

.comparison th,
.comparison td {
  border: 1px solid var(--border);
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
}

.comparison thead {
  background: var(--surface-muted);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.cluster-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2.3rem;
  padding: 1.8rem 0;
  background: #f3f8f6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.site-footer p {
  margin-bottom: 0.55rem;
}

.site-footer small {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }
}
