
:root {
  --ink: #17231e;
  --muted: #637067;
  --paper: #f4f6ef;
  --surface: #ffffff;
  --surface-soft: #edf0e8;
  --line: #d7ddd4;
  --line-strong: #b9c2b8;
  --forest: #163d33;
  --forest-deep: #0e2c25;
  --lime: #e7ff86;
  --lime-deep: #d9f55d;
  --coral: #f37d5a;
  --blue: #d9ecff;
  --shadow: 0 18px 45px rgba(27, 47, 38, 0.08);
  --radius: 8px;
  --container: 1180px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--lime);
  color: var(--forest-deep);
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

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

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--forest);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 239, 0.96);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest-deep);
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--lime);
}

.brand-light {
  color: white;
}

.brand-light .brand-mark {
  background: var(--lime);
  color: var(--forest-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links > a:not(.nav-cta) {
  color: var(--muted);
}

.nav-links > a:not(.nav-cta):hover,
.nav-links > a.active {
  color: var(--ink);
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  background: var(--forest);
  color: white;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  padding: 82px 0 72px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
}

.hero h1,
.page-hero h1,
.tool-hero h1 {
  margin: 0;
  color: var(--forest-deep);
  font-family: var(--serif);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 640px;
  font-size: 64px;
  line-height: 1.02;
  font-weight: 650;
}

.hero-copy > p {
  max-width: 560px;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  background: var(--forest);
  color: white;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  background: var(--surface);
}

.button.small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.hero-proof {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 13px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-proof svg {
  color: var(--forest);
}

.margin-card {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.margin-card::before {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.margin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.margin-card h2 {
  margin: 2px 0 3px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0;
}

.margin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #bed6c2;
  border-radius: 999px;
  background: #f0f9ee;
  color: #2c663e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43a45f;
  box-shadow: 0 0 0 3px rgba(67, 164, 95, 0.13);
}

.preview-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 20px 0;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > span:first-child {
  color: #38443e;
  font-size: 12px;
  font-weight: 700;
}

.input-wrap {
  min-height: 45px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fbfcf8;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(22, 61, 51, 0.08);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
}

.input-wrap input::-webkit-inner-spin-button {
  opacity: 0.35;
}

.input-affix {
  padding-left: 12px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.input-suffix {
  padding: 0 12px 0 0;
}

.preview-result {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--forest);
  color: white;
}

.preview-gauge {
  --value: 0;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime) calc(var(--value) * 1%), rgba(255, 255, 255, 0.13) 0);
  position: relative;
}

.preview-gauge::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--forest);
}

.preview-gauge strong {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--lime);
}

.preview-result-copy span {
  color: #b8c9c1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 750;
}

.preview-result-copy strong {
  display: block;
  margin: 2px 0;
  color: var(--lime);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
}

.preview-result-copy p {
  color: #cbd7d1;
  font-size: 12px;
}

.section {
  padding: 78px 0;
}

.section.compact {
  padding: 58px 0;
}

.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 35px;
}

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

.section-head h2 {
  margin: 0 0 10px;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 750;
  border-bottom: 1px solid var(--forest);
}

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

.tool-card {
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
  border-color: #96a599;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27, 47, 38, 0.06);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf5;
  color: #526158;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent, var(--surface-soft));
  color: var(--forest);
}

.tool-card h3 {
  margin: 20px 0 8px;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tool-card-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-band {
  background: var(--forest);
  color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
  padding: 64px 0;
}

.feature-copy .eyebrow {
  color: var(--lime);
}

.feature-copy .eyebrow::before {
  background: var(--coral);
}

.feature-copy h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}

.feature-copy p {
  margin: 0;
  max-width: 470px;
  color: #c9d7d1;
}

.feature-list {
  display: grid;
  gap: 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-item:first-child {
  padding-top: 0;
}

.feature-item:last-child {
  border-bottom: 0;
}

.feature-item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--lime);
}

.feature-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.feature-item p {
  margin: 0;
  color: #b8c9c1;
  font-size: 14px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: steps;
}

.process-item {
  position: relative;
  padding: 22px 22px 22px 0;
  border-top: 1px solid var(--line-strong);
  counter-increment: steps;
}

.process-item::before {
  content: "0" counter(steps);
  display: block;
  margin-bottom: 18px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 28px;
}

.process-item h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 22px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 66px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 760px;
  font-size: 50px;
  line-height: 1.06;
  font-weight: 620;
}

.page-hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.search-wrap {
  width: min(390px, 100%);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-wrap svg {
  color: var(--muted);
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.filter-button {
  min-height: 35px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.tool-hero {
  padding: 38px 0 54px;
  border-bottom: 1px solid var(--line);
  background: var(--accent, var(--surface-soft));
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.back-link svg {
  transform: rotate(180deg);
}

.tool-hero h1 {
  max-width: 850px;
  font-size: 48px;
  line-height: 1.07;
  font-weight: 620;
}

.tool-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #39483f;
  font-size: 17px;
}

.tool-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  padding: 38px 0 70px;
  align-items: start;
}

.calculator-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calculator-heading {
  display: flex;
  align-items: start;
  gap: 13px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.icon-tile {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--lime);
}

.calculator-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0;
}

.calculator-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.calculator-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding: 24px 0;
}

.result-panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--forest);
  color: white;
}

.result-kicker {
  display: block;
  margin-bottom: 15px;
  color: #b9c9c2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
}

.result-item {
  min-height: 105px;
  padding: 16px;
  background: var(--forest);
}

.result-item.primary {
  background: #1c493d;
}

.result-item span {
  display: block;
  margin-bottom: 7px;
  color: #b9c9c2;
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 750;
}

.result-item strong {
  display: block;
  color: var(--lime);
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.1;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.result-item small {
  display: block;
  margin-top: 6px;
  color: #aabeb5;
  font-size: 10px;
  line-height: 1.35;
}

.result-summary {
  margin: 14px 0 0;
  color: #c6d3cd;
  font-size: 12px;
}

.formula-note {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-top: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf4;
  color: var(--muted);
  font-size: 12px;
}

.formula-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--forest);
}

.tool-sidebar {
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sidebar-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 19px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.sidebar-link:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-link:hover {
  color: var(--forest);
}

.ad-slot {
  display: none;
  min-height: 120px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad-slot.is-visible {
  display: grid;
  place-items: center;
}

.partner-slot {
  display: none;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #c6d5b9;
  border-radius: var(--radius);
  background: #f4f9ed;
}

.partner-slot.is-visible {
  display: block;
}

.partner-slot h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 20px;
}

.partner-slot p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.tool-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  padding: 0 0 72px;
  align-items: start;
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin: 42px 0 12px;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: 31px;
  letter-spacing: 0;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 26px 0 8px;
  color: var(--forest-deep);
  font-size: 18px;
}

.article-body p,
.article-body li {
  color: #4c5a52;
  font-size: 15px;
}

.article-body ul,
.article-body ol {
  padding-left: 20px;
}

.article-body li + li {
  margin-top: 8px;
}

.formula-box {
  margin: 22px 0;
  padding: 19px;
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--forest-deep);
  font-size: 15px;
  font-weight: 650;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.info-list-item {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-list-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.info-list-item p {
  margin: 0;
  font-size: 13px;
}

.faq-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 16px 40px 16px 0;
  color: var(--forest-deep);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--coral);
  font-size: 20px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 680px;
  margin: -2px 0 18px;
  font-size: 14px;
}

.partner-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.partner-card .eyebrow {
  margin-bottom: 10px;
  font-size: 10px;
}

.partner-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
}

.partner-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.legal-page {
  max-width: 820px;
  padding: 58px 0 80px;
}

.legal-page h1 {
  margin: 0 0 14px;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.08;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 13px;
}

.legal-page h2 {
  margin: 38px 0 12px;
  font-family: var(--serif);
  font-size: 28px;
}

.legal-page p,
.legal-page li {
  color: #4c5a52;
  font-size: 15px;
}

.legal-page a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #e3d7a8;
  border-radius: var(--radius);
  background: #fffbed;
  color: #625a38;
  font-size: 13px;
}

.site-footer {
  padding: 58px 0 22px;
  background: var(--forest-deep);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 40px;
}

.footer-brand p {
  max-width: 430px;
  margin: 18px 0;
  color: #b9c9c2;
  font-size: 13px;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 650;
}

.footer-grid h3 {
  margin: 4px 0 14px;
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-grid > div:not(.footer-brand) a {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 9px 0;
  color: #b9c9c2;
  font-size: 13px;
}

.footer-grid > div:not(.footer-brand) a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #91a79e;
  font-size: 11px;
}

.footer-disclaimer {
  text-align: right;
}

.footer-links {
  display: flex;
  gap: 14px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 54px;
  }

  .margin-card {
    max-width: 650px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .nav-wrap {
    min-height: 64px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 64px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links > a {
    padding: 11px;
  }

  .nav-cta {
    margin-top: 6px;
  }

  .hero-grid {
    padding: 46px 0 50px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-copy > p {
    margin: 18px 0 23px;
    font-size: 16px;
  }

  .preview-fields {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 55px 0;
  }

  .section-head h2 {
    font-size: 34px;
  }

  .section-head.split {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

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

  .tool-card {
    min-height: 0;
  }

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

  .page-hero {
    padding: 46px 0 36px;
  }

  .page-hero h1,
  .tool-hero h1 {
    font-size: 37px;
  }

  .tool-hero {
    padding: 30px 0 42px;
  }

  .calculator-card {
    padding: 18px;
  }

  .calculator-fields {
    grid-template-columns: 1fr;
  }

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

  .result-item {
    min-height: 0;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .hero h1 {
    font-size: 37px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .margin-card {
    padding: 18px;
  }

  .preview-result {
    grid-template-columns: 1fr;
  }

  .preview-gauge {
    width: 72px;
    height: 72px;
  }

  .result-item strong {
    font-size: 24px;
  }
}
