:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --panel: #ffffff;
  --text: #1f2a2e;
  --muted: #647174;
  --line: #d8ded9;
  --accent: #007a6a;
  --accent-strong: #004c45;
  --warm: #b45f18;
}

* {
  box-sizing: border-box;
}

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.55;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

header,
footer,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.nav-more,
.nav-language {
  position: relative;
}

.nav-more summary,
.nav-language summary {
  cursor: pointer;
  color: var(--accent-strong);
  list-style: none;
}

.nav-more summary::-webkit-details-marker,
.nav-language summary::-webkit-details-marker {
  display: none;
}

.nav-more[open],
.nav-language[open] {
  z-index: 10;
}

.nav-more[open] summary,
.nav-language[open] summary {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-more[open]::after,
.nav-language[open]::after {
  position: fixed;
  inset: 0;
  content: "";
  z-index: -1;
}

.nav-more a,
.nav-language a {
  display: block;
}

.nav-more > a,
.nav-more[open] a,
.nav-language > a,
.nav-language[open] a {
  padding: 8px 10px;
}

.nav-more[open],
.nav-language[open] {
  padding: 0;
}

.nav-more[open] a,
.nav-language[open] a {
  background: var(--panel);
}

.nav-language summary {
  min-width: 54px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  line-height: 1;
}

.nav-language[open] {
  position: relative;
}

.nav-language[open] a {
  min-width: 160px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.nav-language[open] a:first-of-type {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.nav-language[open] a:last-of-type {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.nav-language a[aria-current="page"] {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand {
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

main {
  padding: 34px 0 54px;
}

section {
  margin: 28px 0;
}

.brand-hero {
  margin: 8px 0 18px;
}

.brand-hero h1 {
  max-width: 920px;
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: clamp(2.1rem, 6vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.home-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 10px;
}

.home-tool .converter {
  margin: 0;
}

.home-tool-main {
  min-width: 0;
}

.home-tool .rate-alerts {
  margin: 16px 0 0;
}

.home-visual {
  display: grid;
  align-content: stretch;
  overflow: hidden;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(31, 42, 46, 0.08);
}

.home-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.home-visual p {
  margin: 0;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.converter {
  margin-top: 10px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(31, 42, 46, 0.08);
}

.tool-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tool-tabs a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.tool-tabs a.active {
  background: #e6f3ef;
  color: var(--accent-strong);
}

.converter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

select {
  width: 100%;
  min-width: 180px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.swap-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.conversion-result {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
}

.date-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.date-strip span {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.date-strip button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.date-strip input {
  min-width: 150px;
  height: 32px;
  border-radius: 999px;
}

.conversion-result strong {
  font-size: clamp(1.45rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.conversion-result span,
.tool-note {
  color: var(--muted);
}

.converter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button.secondary {
  background: #e8eeea;
  color: var(--accent-strong);
}

.button.disabled {
  background: #eef1ee;
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

.rate-alerts {
  padding: 18px;
  background: #eef3ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ad-slot {
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 16px;
  background: #f2f0ea;
  border: 1px dashed #bfc8c1;
  border-radius: 8px;
}

.ad-slot span {
  color: var(--warm);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-slot strong {
  max-width: 640px;
  font-size: 1.05rem;
}

.ad-slot a {
  font-weight: 700;
}

.hero {
  margin-top: 8px;
}

.hero h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.brand-tagline {
  color: var(--accent-strong) !important;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.metric {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric span {
  color: var(--muted);
}

.metric strong {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.08;
}

.pair-insight,
.rate-chart,
.faq details,
.stats-grid article {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pair-insight p {
  max-width: 780px;
  color: var(--muted);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.rate-chart svg {
  display: block;
  width: 100%;
  height: auto;
  background: #f9fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rate-chart line {
  stroke: #c7d2cc;
  stroke-width: 2;
}

.rate-chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-scale {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.stats-grid article {
  display: grid;
  gap: 6px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.stats-grid strong {
  font-size: 1.35rem;
  color: var(--accent-strong);
}

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

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

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

.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 16px;
  background: #eef3ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

input {
  min-width: 180px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.grid li,
.links a {
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.lead-box {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warm);
  border-radius: 8px;
}

.sample-cta {
  border-left-color: var(--accent);
}

.business-cta {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.business-cta summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
}

.business-cta-body {
  padding-top: 12px;
}

.checklist {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.payment-qr {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 8px 0 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-qr img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.payment-qr figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.widget-preview {
  margin-top: 14px;
}

.steps {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.lead-box h2 {
  margin-top: 6px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.plans article {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plans strong {
  display: block;
  margin: 8px 0;
  color: var(--accent-strong);
  font-size: 1.3rem;
}

.shortcut-section {
  margin-top: 30px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.shortcut-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.shortcut-card:hover,
.shortcut-card:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.shortcut-card strong {
  color: var(--accent-strong);
  font-size: 1.08rem;
}

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

.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.range-tabs span {
  padding: 7px 10px;
  background: #eef3ef;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.range-tabs .active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.stats-bar article {
  min-height: 100px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.related-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.related-card strong {
  color: var(--accent-strong);
  font-size: 1.08rem;
}

.related-card span,
.related-card em {
  color: var(--muted);
  font-style: normal;
}

.related-card.inverse {
  border-left: 4px solid var(--warm);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

th {
  background: #eef3ef;
  color: var(--muted);
  font-size: 0.84rem;
}

pre {
  overflow-x: auto;
  padding: 16px;
  background: #152321;
  color: #ecf6f3;
  border-radius: 8px;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.quote {
  padding: 18px;
  background: var(--panel);
  border-left: 4px solid var(--accent);
}

.legal {
  display: grid;
  gap: 16px;
}

.legal article {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

footer {
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

@media (max-width: 680px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-language {
    margin-left: auto;
  }

  .tools {
    display: grid;
  }

  .section-heading,
  .chart-scale {
    display: grid;
  }

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

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

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

  .home-visual img {
    min-height: 260px;
  }

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

  .date-strip {
    border-radius: 8px;
  }

  .swap-button {
    justify-self: center;
  }

  input,
  .button,
  select {
    width: 100%;
  }
}
