:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --surface-strong: #f0f5f2;
  --text: #17211b;
  --muted: #5f6f66;
  --line: #d9e2dc;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #d9f2ee;
  --warning: #a15c07;
  --warning-soft: #fff3d8;
  --ink: #101828;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 246, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100vw - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

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

.hero {
  width: min(1180px, calc(100vw - 32px));
  margin: 34px auto 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.intro {
  padding: 8px 0 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 68px);
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 18px;
}

.lede {
  max-width: 710px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.primary,
button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

button:hover,
.button:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.trust-panel {
  align-self: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.trust-panel dl {
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.trust-panel dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-panel dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 720;
}

.container {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 22px 22px 0;
}

.panel-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel-body {
  padding: 22px;
}

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

.field {
  display: grid;
  gap: 7px;
}

label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

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

.segmented label {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  text-align: center;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.segmented label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

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

.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.result-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.result-value {
  color: var(--ink);
  font-size: 24px;
  font-weight: 820;
  text-align: right;
}

.note {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--warning-soft);
  color: #664000;
  font-size: 14px;
}

.section {
  margin: 44px auto 0;
}

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

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.card {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card p {
  color: var(--muted);
}

.country-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

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

th {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 760;
}

.content-page {
  width: min(860px, calc(100vw - 32px));
  margin: 38px auto 60px;
}

.content-page .panel-body {
  display: grid;
  gap: 18px;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.content-page ul {
  margin: 0;
  padding-left: 22px;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: #edf2ef;
}

.footer-inner {
  width: min(1180px, calc(100vw - 32px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.copy-row textarea {
  flex: 1;
}

@media (max-width: 880px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .form-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer-inner,
  .copy-row {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 40px;
  }
}

@media (max-width: 520px) {
  .segmented {
    grid-template-columns: 1fr;
  }

  .result-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-value {
    text-align: left;
  }
}

