:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #17212b;
  --muted: #667384;
  --line: #dce3eb;
  --soft-line: #ebeff4;
  --blue: #2563eb;
  --teal: #0f766e;
  --amber: #b45309;
  --shadow: 0 16px 42px rgba(22, 33, 43, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, #ffffff 0, var(--bg) 310px);
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.topbar {
  display: flex;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.page-shell {
  display: grid;
  gap: 34px;
  padding: 48px 0 64px;
}

.intro {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.02;
}

.intro-copy {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-heading h2 {
  font-size: 18px;
  line-height: 1.2;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.tool-grid-planned {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tool-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.tool-grid-main .tool-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(82px, 1fr) auto;
  align-items: start;
  min-height: 238px;
  gap: 16px;
}

.tool-card[href]:hover,
.tool-card[href]:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.15);
  outline: none;
  transform: translateY(-2px);
}

.tool-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #f9fbfd;
  overflow: hidden;
}

.tool-grid-main .tool-visual {
  width: 82px;
  height: 82px;
}

.icon-plate {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.plate-ios {
  left: 15px;
  top: 16px;
  background: var(--blue);
}

.plate-android {
  right: 13px;
  bottom: 14px;
  background: var(--teal);
}

.icon-swatch {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.swatch-blue {
  right: 16px;
  top: 16px;
  background: var(--blue);
}

.swatch-teal {
  left: 17px;
  bottom: 17px;
  background: var(--teal);
}

.swatch-amber {
  right: 32px;
  top: 34px;
  background: var(--amber);
}

.sdp-visual {
  background: #f8fbfa;
}

.xml-sheet {
  position: absolute;
  left: 17px;
  top: 17px;
  display: grid;
  gap: 6px;
  width: 44px;
  height: 54px;
  padding: 12px 9px;
  border: 1px solid #cfe0dd;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.1);
}

.xml-sheet span {
  height: 4px;
  border-radius: 999px;
  background: #8eb8b2;
}

.xml-sheet span:nth-child(2) {
  width: 72%;
  background: #b9c7d8;
}

.xml-sheet span:nth-child(3) {
  width: 88%;
  background: #e1b875;
}

.scale-badge {
  position: absolute;
  right: 13px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.sdp-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.dot-positive {
  right: 19px;
  top: 17px;
  background: var(--blue);
}

.dot-negative {
  left: 18px;
  bottom: 15px;
  background: var(--amber);
}

.region-visual {
  background: #f7faff;
}

.map-sheet {
  position: absolute;
  left: 17px;
  top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 46px;
  height: 48px;
  padding: 8px;
  border: 1px solid #cfdbef;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.1);
}

.map-sheet span {
  border-radius: 4px;
  background: #dbe8f7;
}

.map-sheet span:nth-child(2) {
  background: #cfe0dd;
}

.map-sheet span:nth-child(3) {
  grid-column: 1 / -1;
  background: #ead9bf;
}

.code-badge {
  position: absolute;
  right: 13px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.region-pin {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.pin-primary {
  right: 19px;
  top: 17px;
  background: var(--teal);
}

.pin-secondary {
  left: 18px;
  bottom: 15px;
  background: var(--amber);
}

.coordinate-visual {
  background: #f7fbfa;
}

.coord-grid {
  position: absolute;
  left: 16px;
  top: 17px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 48px;
  height: 50px;
  padding: 8px;
  border: 1px solid #cfe0dd;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.1);
}

.coord-grid span {
  border-radius: 4px;
  background: #d8ebe8;
}

.coord-grid span:nth-child(2) {
  background: #dbe8f7;
}

.coord-grid span:nth-child(3) {
  grid-column: 1 / -1;
  background: #ead9bf;
}

.coord-badge {
  position: absolute;
  right: 12px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 30px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.coord-pin {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 999px 999px 999px 0;
  background: var(--blue);
  transform: rotate(-45deg);
}

.coord-dot {
  position: absolute;
  left: 18px;
  bottom: 15px;
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--amber);
}

.json-visual {
  background: #fbf9ff;
}

.json-sheet {
  position: absolute;
  left: 16px;
  top: 17px;
  display: grid;
  gap: 6px;
  width: 47px;
  height: 54px;
  padding: 12px 9px;
  border: 1px solid #d8d6ef;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.1);
}

.json-sheet span {
  height: 4px;
  border-radius: 999px;
  background: #9aaee8;
}

.json-sheet span:nth-child(2) {
  width: 70%;
  background: #8eb8b2;
}

.json-sheet span:nth-child(3) {
  width: 86%;
  background: #e1b875;
}

.brace-badge {
  position: absolute;
  right: 13px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.json-chip {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.chip-string {
  right: 19px;
  top: 17px;
  background: var(--teal);
}

.chip-number {
  left: 18px;
  bottom: 15px;
  background: var(--amber);
}

.tool-content {
  display: grid;
  gap: 4px;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.tool-content strong {
  font-size: 19px;
  line-height: 1.2;
}

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

.tool-grid-main .tool-content span {
  font-size: 13px;
}

.tool-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.tool-grid-main .tool-action {
  width: 100%;
  margin-top: auto;
}

.muted-card {
  border-style: dashed;
  box-shadow: none;
}

.placeholder-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.placeholder-visual span {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--soft-line);
}

.placeholder-visual span:nth-child(2) {
  background: #dbe8f7;
}

.placeholder-visual span:nth-child(3) {
  background: #e6ddcf;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1120px) {
  .tool-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-grid-main .tool-card {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    min-height: 128px;
    gap: 18px;
  }

  .tool-grid-main .tool-action {
    width: auto;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .brand,
  .page-shell,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .page-shell {
    padding: 36px 0 48px;
  }

  .tool-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

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

  .tool-grid-main .tool-card {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 132px;
  }

  .tool-visual {
    width: 72px;
    height: 72px;
  }

  .tool-grid-main .tool-visual {
    width: 72px;
    height: 72px;
  }

  .icon-plate {
    width: 38px;
    height: 38px;
    font-size: 9px;
  }

  .tool-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tool-grid-main .tool-action {
    width: 100%;
  }
}
