:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-soft: #ece7de;
  --surface-strong: #e6dfd4;
  --text: #182230;
  --muted: #667085;
  --line: #ddd4c6;
  --primary: #0e766e;
  --primary-dark: #0b5e57;
  --primary-soft: #dcefed;
  --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 18px 40px rgba(17, 24, 39, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", Arial, sans-serif;
  line-height: 1.6;
}

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

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

main {
  min-height: 60vh;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 34, 48, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand.brand-text-only {
  gap: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand-text small {
  font-size: 0.84rem;
  color: #6b7280;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 999px;
}

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

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #667085;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--surface);
  color: var(--text);
}

.hero-shell {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.75fr);
  gap: 44px;
  align-items: start;
}

.hero-copy {
  max-width: 980px;
  padding-top: 8px;
}

.eyebrow {
  display: none;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.7rem, 4.4vw, 5.2rem);
  max-width: 12.8ch;
  margin-bottom: 18px;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  margin-bottom: 12px;
}

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

p {
  margin-top: 0;
}

.hero-lead,
.section-desc {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 60ch;
}

.hero-lead {
  max-width: 50ch;
  color: #5f6b7a;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 24px;
}

.hero-actions .btn {
  min-width: 186px;
}

.hero-copy .hero-lead {
  line-height: 1.75;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: #5f6b7a;
  font-weight: 500;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  position: absolute;
  left: 0;
  top: 10px;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid rgba(24, 34, 48, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-card-main {
  padding: 22px;
}

.mini-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-tool-list {
  display: grid;
  gap: 10px;
}

.hero-tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #faf8f4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-tool-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(14, 118, 110, 0.28);
}

.hero-tool-item span {
  display: grid;
  gap: 2px;
}

.hero-tool-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.hero-tool-item small {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-tool-item em {
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.92rem;
}

.mini-stat {
  padding: 20px;
}

.mini-stat strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.mini-stat p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-support {
  padding: 0 0 18px;
}

.hero-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trust-strip {
  padding: 8px 0 18px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-item {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 34, 48, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
}

.trust-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 72px 0;
}

.section-soft {
  padding-top: 22px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head-split {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-head-split .section-desc {
  max-width: 52ch;
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  background: var(--surface);
  border: 1px solid rgba(24, 34, 48, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  gap: 18px;
}

.feature-top,
.feature-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-top {
  margin-bottom: 0;
}

.feature-body {
  display: grid;
  gap: 10px;
}

.feature-body h3 {
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.feature-body p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.98rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feature-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.feature-meta {
  color: #5f6b7a;
  font-size: 0.92rem;
  font-weight: 600;
}

.feature-bottom {
  margin-top: auto;
  padding-top: 4px;
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.dual-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.info-panel,
.steps-panel {
  background: var(--surface);
  border: 1px solid rgba(24, 34, 48, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.steps-panel {
  display: grid;
  gap: 14px;
}

.step-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfaf7, #f4efe7);
  border: 1px solid var(--line);
}

.step-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.step-card p,
.info-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 118, 110, 0.16);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(14, 118, 110, 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(24, 34, 48, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(24, 34, 48, 0.18);
  color: var(--text);
  transform: translateY(-1px);
}

.article-page {
  max-width: 820px;
  margin-inline: auto;
}

.article-header {
  margin-bottom: 32px;
}

.article-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-header .article-meta {
  margin: 0;
}

.article-page h1 {
  max-width: 14ch;
}

.article-description {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.75;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.article-content > * {
  max-width: 68ch;
}

.article-content > h2,
.article-content > h3,
.article-content > h4,
.article-content > ul,
.article-content > ol,
.article-content > blockquote,
.article-content > pre,
.article-content > table {
  max-width: 68ch;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.18;
}

.article-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.article-content p {
  margin-bottom: 16px;
  max-width: 68ch;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

.article-content li {
  margin-bottom: 10px;
  color: var(--text);
}

.article-content strong {
  color: var(--text);
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--primary-dark);
}

.article-content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--primary);
  background: #f8f5ef;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #425466;
}

.article-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.article-related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-related h2 {
  margin-bottom: 14px;
}

.article-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-related li + li {
  margin-top: 10px;
}

.article-related a {
  color: var(--primary);
  font-weight: 600;
}

.article-related a:hover {
  text-decoration: underline;
}

.article-related-head {
  margin-bottom: 20px;
}

.article-related-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card-related .feature-body p {
  max-width: 30ch;
}

.page-hero {
  padding: 56px 0 18px;
}

.page-hero-compact {
  padding-bottom: 8px;
}

.page-hero-copy {
  max-width: 760px;
}

.page-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-hero-lead {
  max-width: 58ch;
  color: #5f6b7a;
  font-size: 1.04rem;
}

.section-tight {
  padding-top: 26px;
}

.articles-index-section .section-head {
  margin-bottom: 24px;
}

.articles-grid {
  align-items: stretch;
}

.article-card-archive .feature-body {
  gap: 12px;
}

.article-card-archive .feature-body h3 {
  line-height: 1.28;
}

.article-card-archive .feature-body p {
  max-width: 34ch;
}

.article-card-archive .feature-bottom {
  padding-top: 10px;
}

.site-footer {
  margin-top: 64px;
  padding: 52px 0 24px;
  border-top: 1px solid rgba(24, 34, 48, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr;
  gap: 18px;
}

.footer-brand .brand {
  display: inline-flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.footer-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.footer-brand .brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.footer-brand .brand-text small {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 4px;
}

.footer-brand .muted {
  max-width: 28ch;
  margin: 0;
  color: #5f6b7a;
  font-size: 0.98rem;
}

.footer-col h4 {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 14px;
}

.footer-grid a,
.footer-grid .muted {
  color: #5f6b7a;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 34, 48, 0.06);
  color: #667085;
  font-size: 0.92rem;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.card,
.tool-panel,
.content-card,
.sidebar-card {
  background: var(--surface);
  border: 1px solid rgba(24, 34, 48, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-pad,
.tool-panel,
.content-card,
.sidebar-card {
  padding: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.tool-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea.tool-input {
  min-height: 220px;
  resize: vertical;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.result-box {
  background: #f9f7f3;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.result-box strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li + li {
  margin-top: 10px;
}

.mini-link {
  color: var(--primary);
  font-weight: 700;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card h3 {
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-card p {
  margin-bottom: 14px;
}

.article-meta {
  display: inline-block;
  margin-top: 2px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.article-card .btn {
  margin-top: auto;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid,
  .dual-panel,
  .page-grid,
  .section-head-split {
    grid-template-columns: 1fr;
  }

  .section-head-split {
    display: grid;
    align-items: start;
  }

  .feature-grid,
  .trust-row,
  .footer-grid,
  .article-related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-row {
    min-height: 74px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .site-header {
    position: sticky;
  }

  .header-row {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 11px;
    right: 11px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid rgba(24, 34, 48, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
  }

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

  .nav a {
    border-radius: 12px;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    max-width: 100%;
    line-height: 1.04;
  }

  .hero-shell,
  .page-hero {
    padding-top: 34px;
  }

  .feature-grid,
  .trust-row,
  .footer-grid,
  .results-grid,
  .hero-support-grid,
  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .feature-bottom .btn {
    width: auto;
  }

  .article-card-archive .feature-body p,
  .article-card-related .feature-body p {
    max-width: 100%;
  }

  .article-header-top {
    align-items: flex-start;
  }

  .article-page h1 {
    max-width: 100%;
  }

  .hero-tool-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-text small {
    display: none;
  }

  .footer-grid {
    gap: 26px;
  }

  .footer-brand .muted {
    max-width: 100%;
  }
}