:root {
  --ink: #17202a;
  --muted: #5d6b7a;
  --line: #d9e0e8;
  --surface: #ffffff;
  --wash: #f4f7fb;
  --blue: #336699;
  --blue-dark: #254f78;
  --gold: #ffcc66;
  --green: #1f7a53;
  --red: #b42318;
  --shadow: 0 14px 36px rgba(24, 41, 66, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
}

.brand img {
  width: 130px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-picker select {
  min-height: 36px;
  width: auto;
  padding: 6px 30px 6px 10px;
  font-size: 14px;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.language-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.language-links a.is-active {
  border-color: var(--blue);
  color: var(--blue);
}

.tool-band {
  padding: 56px 0 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(244, 247, 251, 0.95)),
    var(--wash);
}

.tool-layout,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
}

.tool-copy h1,
.section h2 {
  margin: 0 0 16px;
  line-height: 1.08;
  letter-spacing: 0;
}

.tool-copy h1 {
  max-width: 700px;
  font-size: clamp(38px, 6vw, 64px);
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
}

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

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.status-strip span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}

.lookup-panel,
.code-panel,
.feature-item,
.list-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lookup-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

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

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

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

input:focus,
select:focus {
  outline: 3px solid rgba(51, 102, 153, 0.18);
  border-color: var(--blue);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.toggle input {
  width: 18px;
  min-height: 18px;
}

.primary-action {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.primary-action:hover {
  background: var(--blue-dark);
}

.result-panel {
  display: block;
  min-height: 108px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5df;
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
}

.result-panel.is-block {
  border-color: rgba(180, 35, 24, 0.35);
  background: #fff4f2;
  color: var(--red);
}

.result-panel.is-review {
  border-color: rgba(181, 121, 0, 0.35);
  background: #fff8e8;
  color: #875d00;
}

.result-panel.is-allow {
  border-color: rgba(31, 122, 83, 0.35);
  background: #effaf5;
  color: var(--green);
}

.section {
  padding: 58px 0;
}

.muted {
  background: #fff;
}

.code-panel {
  padding: 18px;
  overflow: auto;
}

pre {
  margin: 0;
  color: #1b2a39;
  white-space: pre-wrap;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

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

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

.feature-item,
.promo-card {
  padding: 20px;
  box-shadow: none;
}

.promo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.accent-card {
  border-color: rgba(51, 102, 153, 0.32);
  background: #f8fbff;
}

.feature-item h3,
.promo-card h3 {
  margin: 0 0 8px;
}

.feature-item p,
.promo-card p,
.section p,
.download-note {
  color: var(--muted);
}

.promo-label {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.help-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
  padding: 20px;
}

.help-panel h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.install-steps {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.install-steps li {
  margin: 7px 0;
}

.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  font-weight: 800;
  white-space: nowrap;
}

.text-action:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.list-table {
  overflow: hidden;
  box-shadow: none;
}

.list-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.list-row:first-child {
  border-top: 0;
}

.list-head {
  background: #eef3f8;
  color: var(--ink);
  font-weight: 800;
}

.list-row span:last-child {
  display: flex;
  gap: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-layout,
  .split-layout,
  .feature-grid,
  .promo-grid {
    grid-template-columns: 1fr;
  }

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

  .tool-copy h1 {
    font-size: 40px;
  }

  .list-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
