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

body {
  margin: 0;
  padding-bottom: 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(217, 119, 6, 0.06) 1px, transparent 1px),
    #f4f0e8;
  background-size: 52px 52px;
  color: #18201d;
  font-family: Aptos, "Segoe UI", Candara, Calibri, sans-serif;
}

main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

a {
  color: #0a4f49;
  font-weight: 800;
}

h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  line-height: 0.95;
}

h2 {
  margin-top: 34px;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
}

p,
li {
  color: #5f685f;
  font-size: 1.03rem;
  line-height: 1.7;
}

.page-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  text-decoration: none;
}

.hero-panel,
.matrix,
.tool-jump {
  border: 1px solid #d8d0c0;
  background: rgba(255, 250, 241, 0.9);
}

.hero-panel {
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 24px 80px rgba(49, 43, 33, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  padding: 0 16px;
  text-decoration: none;
}

.secondary-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid #b8ac98;
  background: #fffaf1;
  color: #18201d;
  padding: 0 16px;
  text-decoration: none;
}

.tool-jump {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-color: #0f766e;
  box-shadow: 0 16px 50px rgba(15, 118, 110, 0.12);
}

.tool-jump h2,
.tool-jump p {
  margin: 0;
}

.tool-jump h2 {
  margin-top: 4px;
}

.tool-jump p + p,
.tool-jump h2 + p {
  margin-top: 8px;
}

.tool-jump-label {
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tool-jump-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f766e;
  background: #0f766e;
  color: #fff;
  padding: 0 22px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.tool-jump-final {
  margin-top: 26px;
}

.sticky-tool-cta {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  margin-left: auto;
  margin-bottom: 14px;
  border: 2px solid #0a4f49;
  background: #0f766e;
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 18px 46px rgba(15, 38, 35, 0.24);
  text-decoration: none;
}

.sticky-tool-copy {
  display: grid;
  gap: 2px;
}

.sticky-tool-copy strong,
.sticky-tool-copy small {
  color: #fff;
}

.sticky-tool-copy small {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.86;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.content-grid section,
.guide,
.faq article,
.matrix-card {
  border: 1px solid #d8d0c0;
  background: rgba(255, 250, 241, 0.72);
  padding: 18px;
}

.guide,
.faq {
  margin-top: 26px;
}

.guide ol,
.guide ul {
  margin-bottom: 0;
  padding-left: 22px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq h2 {
  margin-bottom: 0;
}

.matrix {
  margin-top: 32px;
  padding: 20px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.matrix-grid a {
  display: flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid #d8d0c0;
  background: #fffaf1;
  padding: 0 12px;
  text-decoration: none;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 720px) {
  body {
    padding-bottom: 0;
  }

  main {
    width: min(100% - 20px, 980px);
    padding: 24px 0;
  }

  .tool-jump {
    grid-template-columns: 1fr;
  }

  .tool-jump-button {
    width: 100%;
  }

  .sticky-tool-cta {
    top: 8px;
    width: 100%;
  }

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

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 1440px) {
  .sticky-tool-cta {
    position: fixed;
    top: auto;
    right: 24px;
    bottom: 24px;
    width: auto;
    margin: 0;
  }
}
