:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #17212b;
  background: #f4f7f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #075a9c;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #f0a500;
  outline-offset: 3px;
}

.site-header,
.site-main,
.site-footer {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

.site-header {
  padding-block: 28px 20px;
}

.header-tools {
  display: flex;
  min-height: 36px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.header-tools:has(.language-switcher:only-child) {
  justify-content: flex-end;
}

.language-switcher {
  display: inline-flex;
  border: 1px solid #8796a5;
  border-radius: 6px;
  padding: 2px;
  background: #ffffff;
}

.language-switcher button {
  border: 0;
  border-radius: 4px;
  padding: 6px 10px;
  color: #334452;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #ffffff;
  background: #075a9c;
  font-weight: 750;
}

.site-footer {
  padding-block: 8px 32px;
  color: #536270;
}

.back-link {
  display: inline-block;
}

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

h1 {
  margin-bottom: 4px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.25;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.version-label,
.muted-text {
  color: #536270;
}

.version-label {
  margin-bottom: 0;
  font-weight: 700;
}

.panel {
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgb(24 39 55 / 8%);
  padding: clamp(18px, 4vw, 30px);
}

.primary-action,
.button-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 11px 20px;
  color: #ffffff;
  background: #075a9c;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.primary-action:hover,
.button-link:hover {
  color: #ffffff;
  background: #064978;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.tool-card {
  display: flex;
  flex-direction: column;
}

.tool-card p {
  flex-grow: 1;
}

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

.trial-link {
  font-weight: 700;
}

.badge {
  display: inline-block;
  margin-left: 5px;
  border-radius: 999px;
  padding: 2px 8px;
  color: #644700;
  background: #fff0b8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .site-header,
  .site-main,
  .site-footer {
    width: min(100% - 20px, 960px);
  }

  .panel {
    border-radius: 6px;
    padding: 18px;
  }

  .primary-action,
  .button-link {
    width: 100%;
  }
}
