:root {
  --ink: #17201f;
  --muted: #64706d;
  --line: #dde4df;
  --paper: #fbfcf9;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0d4f4a;
  --amber: #c27a18;
  --coral: #d95f48;
  --mint: #dff3ed;
  --shadow: 0 18px 55px rgba(23, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 252, 249, 0.88);
  border-bottom: 1px solid rgba(221, 228, 223, 0.85);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  width: 34px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 22px;
  color: #3c4845;
  font-size: 14px;
  font-weight: 650;
}

.header-action,
.button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-action {
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 14px;
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.button svg,
.header-action svg {
  height: 18px;
  width: 18px;
}

.button.primary {
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 252, 249, 0.98) 0%, rgba(251, 252, 249, 0.9) 28%, rgba(251, 252, 249, 0.38) 64%, rgba(23, 32, 31, 0.12) 100%),
    linear-gradient(180deg, rgba(251, 252, 249, 0.1) 0%, rgba(251, 252, 249, 0.9) 100%);
}

.hero-content {
  max-width: 690px;
  padding: 168px clamp(18px, 5vw, 72px) 104px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 82px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 670px;
}

.hero-copy {
  color: #394642;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 630px;
}

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

.trust-strip {
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.trust-strip div {
  background: rgba(255, 255, 255, 0.035);
  min-height: 92px;
  padding: 22px clamp(18px, 3vw, 40px);
}

.trust-strip strong {
  display: block;
  font-size: clamp(18px, 2vw, 26px);
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.section {
  padding: 76px clamp(18px, 5vw, 72px);
  scroll-margin-top: 84px;
}

.intro-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.intro-grid article,
.free-tool-layout article,
.submit-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-grid article {
  min-height: 220px;
  padding: 24px;
}

.intro-grid svg,
.free-tool-layout svg {
  color: var(--teal);
  height: 26px;
  margin-bottom: 28px;
  width: 26px;
}

.intro-grid h2,
.free-tool-layout h3 {
  font-size: 19px;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.intro-grid p,
.free-tool-layout p,
.submit-section p {
  color: var(--muted);
  line-height: 1.62;
}

.tools-section,
.free-tools {
  background: #eef5f1;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading.compact {
  align-items: start;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 0;
  max-width: 780px;
}

.search-box {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-width: min(420px, 100%);
  padding: 0 14px;
}

.search-box svg {
  color: var(--muted);
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.search-box input {
  background: transparent;
  border: 0;
  height: 48px;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.filter-panel {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px;
}

.filter-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #35413e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  padding: 0 13px;
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

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

.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 315px;
  padding: 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tool-card:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 16px 36px rgba(23, 32, 31, 0.1);
  transform: translateY(-2px);
}

.tool-card-header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.tool-icon {
  align-items: center;
  background: var(--mint);
  border-radius: 8px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 18px;
  font-weight: 850;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.tool-card h3 {
  font-size: 20px;
  letter-spacing: 0;
  margin: 14px 0 8px;
}

.tool-card p {
  color: var(--muted);
  line-height: 1.58;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
}

.tool-meta span {
  background: #f3f6f4;
  border-radius: 999px;
  color: #53605c;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

.tool-link {
  align-items: center;
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
}

.tool-link svg {
  height: 16px;
  width: 16px;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
}

.platform-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.platform-grid a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 88px;
  padding: 22px;
}

.platform-grid svg {
  color: var(--coral);
  height: 20px;
  width: 20px;
}

.free-tool-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.free-tool-layout article {
  padding: 24px;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

a.text-button {
  display: inline-flex;
}

.submit-section {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr 420px;
}

.stack-teaser {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.stack-teaser h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 12px;
}

.stack-teaser p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.62;
  margin: 0;
  max-width: 720px;
}

.stack-builder {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 440px 1fr;
}

.stack-form,
.stack-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.stack-form {
  display: grid;
  gap: 18px;
}

.stack-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.stack-form legend {
  color: #394642;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.option-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.option-grid label {
  align-items: center;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #394642;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 750;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
}

.option-grid input {
  accent-color: var(--teal);
}

.compact-options {
  grid-template-columns: repeat(3, 1fr);
}

.stack-results {
  min-height: 620px;
}

.stack-summary {
  background: #eef5f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #394642;
  line-height: 1.62;
  margin-bottom: 16px;
  padding: 16px;
}

.stack-summary p {
  margin: 0;
}

.stack-card-list {
  display: grid;
  gap: 12px;
}

.stack-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 28px 46px 1fr 20px;
  padding: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.stack-card:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 16px 36px rgba(23, 32, 31, 0.1);
  transform: translateY(-2px);
}

.stack-rank {
  color: var(--coral);
  font-weight: 850;
}

.stack-card strong,
.stack-card small,
.stack-card em {
  display: block;
}

.stack-card strong {
  font-size: 18px;
  margin-bottom: 4px;
}

.stack-card small {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 7px;
}

.stack-card em {
  color: var(--teal-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.stack-card svg {
  color: var(--coral);
  height: 18px;
  width: 18px;
}

.submit-section h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  max-width: 760px;
}

.submit-section p {
  max-width: 640px;
}

.contact-note {
  color: var(--teal-dark);
  font-weight: 800;
}

.submit-form {
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.submit-form label {
  color: #394642;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.submit-form input,
.submit-form select,
.generator-form input,
.generator-form select,
.generator-form textarea {
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 44px;
  padding: 0 12px;
}

.form-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.form-status a {
  color: var(--teal-dark);
  font-weight: 800;
}

.generator-section {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 420px 1fr;
}

.generator-form,
.generator-output {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.generator-form {
  display: grid;
  gap: 14px;
}

.generator-form label {
  color: #394642;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.generator-form textarea {
  height: 130px;
  padding: 12px;
  resize: vertical;
}

.generator-output {
  min-height: 520px;
}

.output-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.output-header h2 {
  font-size: 24px;
  margin: 0;
}

.generator-output pre {
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #394642;
  line-height: 1.65;
  margin: 0;
  min-height: 430px;
  overflow: auto;
  padding: 18px;
  white-space: pre-wrap;
}

.footer {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
}

.footer span:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.seo-guides {
  background: #ffffff;
}

.guide-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 22px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guide-card:hover,
.mini-tool-card:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 16px 36px rgba(23, 32, 31, 0.1);
  transform: translateY(-2px);
}

.guide-card strong {
  display: block;
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.guide-card span {
  color: var(--muted);
  line-height: 1.55;
}

.guide-card small {
  color: var(--coral);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: auto;
  padding-top: 18px;
  text-transform: uppercase;
}

.detail-main {
  padding-top: 86px;
}

.detail-hero {
  background: #eef5f1;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr 360px;
  padding: 76px clamp(18px, 5vw, 72px);
}

.back-link {
  align-items: center;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 6px;
  margin-bottom: 28px;
}

.back-link svg {
  height: 17px;
  width: 17px;
}

.detail-title-row {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}

.detail-title-row .tool-icon {
  flex: 0 0 auto;
  height: 58px;
  width: 58px;
}

.detail-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  margin: 0;
}

.detail-copy {
  color: #394642;
  font-size: 19px;
  line-height: 1.62;
  max-width: 780px;
}

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

.detail-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 22px;
}

.side-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
}

.side-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-row strong {
  color: var(--ink);
  line-height: 1.45;
}

.detail-content {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
  padding: 56px clamp(18px, 5vw, 72px) 82px;
}

.guide-hero {
  background: #eef5f1;
  border-bottom: 1px solid var(--line);
  padding: 76px clamp(18px, 5vw, 72px);
}

.guide-hero h1 {
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 0.98;
  max-width: 980px;
}

.guide-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}

.mini-tool-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.mini-tool-card {
  align-items: start;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px 1fr;
  padding: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mini-tool-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.mini-tool-card small {
  color: var(--muted);
  display: block;
  line-height: 1.45;
}

.table-wrap {
  overflow-x: auto;
}

.comparison-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: #394642;
  font-size: 12px;
  text-transform: uppercase;
}

.comparison-table td {
  color: var(--muted);
  line-height: 1.5;
}

.comparison-table a {
  color: var(--teal-dark);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.cta-panel {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.detail-panel.wide {
  grid-column: 1 / -1;
}

.detail-panel h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.detail-panel p,
.detail-panel li {
  color: var(--muted);
  line-height: 1.68;
}

.detail-panel ul {
  margin: 0;
  padding-left: 20px;
}

.disclaimer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0 0;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-list span {
  background: #f3f6f4;
  border-radius: 999px;
  color: #53605c;
  font-size: 13px;
  font-weight: 750;
  padding: 7px 10px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 1080px) {
  .intro-grid,
  .tool-grid,
  .platform-grid,
  .guide-card-grid,
  .mini-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .submit-section,
  .detail-hero,
  .detail-content,
  .generator-section,
  .guide-layout,
  .stack-builder {
    grid-template-columns: 1fr;
  }

  .stack-form {
    max-width: 620px;
  }

  .cta-panel {
    align-items: start;
    flex-direction: column;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-section {
    display: grid;
  }

  .submit-form {
    max-width: 560px;
  }

  .detail-side {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    position: absolute;
  }

  .nav {
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .header-action {
    min-height: 36px;
    padding: 0 12px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(251, 252, 249, 0.96) 0%, rgba(251, 252, 249, 0.82) 42%, rgba(251, 252, 249, 0.3) 100%),
      linear-gradient(90deg, rgba(251, 252, 249, 0.9), rgba(251, 252, 249, 0.36));
  }

  .hero-content {
    padding-top: 158px;
  }

  .trust-strip,
  .intro-grid,
  .tool-grid,
  .platform-grid,
  .free-tool-layout,
  .guide-card-grid,
  .mini-tool-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-bottom: 56px;
    padding-top: 56px;
  }

  .footer {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .stack-teaser {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .option-grid,
  .compact-options,
  .stack-card {
    grid-template-columns: 1fr;
  }

  .stack-card {
    align-items: start;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 15px;
  }

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

  .search-box {
    min-width: 0;
  }
}
