:root {
  --ink: #000;
  --night: #071827;
  --accent: #4a6b7c;
  --blueprint: #f6f7f7;
  --muted: #5d5f5f;
  --white: #fff;
  --green: #168f45;
  --display: "Hanken Grotesk", "Arial Black", Arial, sans-serif;
  --body: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
}

a { color: inherit; }

button { font: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 4px solid #ffd54a;
  outline-offset: 4px;
}

.tool-nav {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-bottom: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.97);
  padding: 12px clamp(20px, 4vw, 64px);
}

.tool-logo {
  display: block;
  width: 158px;
  height: 54px;
  border: 2px solid var(--ink);
  background: var(--ink);
  object-fit: contain;
}

.tool-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}

.tool-nav-links > a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.tool-nav-links > a:hover { color: var(--ink); }

.tool-languages {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.tool-languages a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-right: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.tool-languages a:last-child { border-right: 0; }
.tool-languages a[aria-current="page"] { background: var(--accent); color: var(--white); }

.tool-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  border-bottom: 3px solid var(--ink);
}

.tool-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 58%;
  background-color: var(--blueprint);
  background-image:
    linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
}

.tool-hero-copy {
  display: flex;
  max-width: 920px;
  flex-direction: column;
  justify-content: center;
  padding: 84px clamp(24px, 6vw, 96px);
}

.tool-hero h1,
.tool-section-heading h2,
.tool-embed-copy h2,
.tool-faq h2,
.tool-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .93;
  text-transform: uppercase;
}

.tool-hero h1 {
  max-width: 12ch;
  font-size: clamp(54px, 8vw, 108px);
}

.tool-hero-lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.55;
}

.tool-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tool-hero-points li {
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tool-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid var(--ink);
  background: var(--accent);
  box-shadow: 7px 7px 0 var(--ink);
  color: var(--white);
  cursor: pointer;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .15s ease;
}

.tool-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--ink);
}

.tool-hero .tool-button { align-self: flex-start; margin-top: 32px; }

.tool-hero-aside {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 52px clamp(24px, 4vw, 64px);
}

.tool-hero-note {
  width: min(100%, 410px);
  border: 3px solid var(--ink);
  background: var(--night);
  box-shadow: 12px 12px 0 var(--accent);
  color: var(--white);
  padding: 28px;
}

.tool-hero-note strong {
  display: block;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.tool-hero-note p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.tool-widget-section {
  padding: 100px clamp(12px, 5vw, 72px) 116px;
}

.tool-section-heading {
  display: flex;
  width: min(100%, 1180px);
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto 38px;
}

.tool-section-heading h2,
.tool-embed-copy h2,
.tool-faq h2,
.tool-cta h2 { font-size: clamp(38px, 6vw, 72px); }

.tool-section-heading p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.tool-widget-wrap { width: min(100%, 1040px); margin: 0 auto; }

.tool-embed-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--blueprint);
}

.tool-embed-copy,
.tool-code-card { padding: 76px clamp(24px, 5vw, 72px); }

.tool-embed-copy { border-right: 3px solid var(--ink); }

.tool-embed-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}

.tool-steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tool-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  border-top: 2px solid var(--ink);
  padding: 14px 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.tool-steps li:last-child { border-bottom: 2px solid var(--ink); }

.tool-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--accent);
  color: var(--white);
  font-family: var(--display);
  font-size: 13px;
}

.tool-code-card { align-self: center; }

.tool-code-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tool-code-frame {
  border: 3px solid var(--ink);
  background: var(--night);
  box-shadow: 10px 10px 0 var(--accent);
  color: var(--white);
}

.tool-code-frame pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  font: 700 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.tool-copy-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-top: 2px solid var(--white);
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tool-copy-button:hover { background: var(--white); color: var(--ink); }

.tool-link-note {
  margin: 24px 0 0;
  border-left: 5px solid var(--accent);
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.tool-faq {
  width: min(100% - 40px, 1100px);
  margin: 0 auto;
  padding: 110px 0;
}

.tool-faq h2 { margin-bottom: 38px; }

.tool-faq details { border-top: 2px solid var(--ink); }
.tool-faq details:last-of-type { border-bottom: 2px solid var(--ink); }

.tool-faq summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(19px, 2.5vw, 26px);
  font-weight: 900;
  list-style: none;
}

.tool-faq summary::-webkit-details-marker { display: none; }
.tool-faq summary::after { content: "+"; color: var(--accent); font-size: 34px; }
.tool-faq details[open] summary::after { content: "−"; }

.tool-faq details p {
  max-width: 820px;
  margin: 0;
  padding: 0 50px 26px 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.7;
}

.tool-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  border-top: 3px solid var(--ink);
  background: var(--night);
  color: var(--white);
  padding: 76px clamp(24px, 6vw, 90px);
}

.tool-cta h2 { max-width: 13ch; }

.tool-cta p {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.tool-cta .tool-button { background: var(--green); box-shadow: 7px 7px 0 var(--white); }

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 2px solid var(--white);
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 34px clamp(24px, 4vw, 64px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.tool-footer a:hover { color: var(--white); }

@media (max-width: 920px) {
  .tool-nav-links > a:not(.keep-mobile) { display: none; }
  .tool-hero { min-height: auto; grid-template-columns: 1fr; }
  .tool-hero::before { inset: 56% 0 0; }
  .tool-hero-copy { padding-bottom: 58px; }
  .tool-hero-aside { align-items: center; padding-top: 38px; padding-bottom: 72px; }
  .tool-section-heading { align-items: flex-start; flex-direction: column; }
  .tool-embed-section { grid-template-columns: 1fr; }
  .tool-embed-copy { border-right: 0; border-bottom: 3px solid var(--ink); }
  .tool-cta { grid-template-columns: 1fr; }
  .tool-cta .tool-button { justify-self: start; }
}

@media (max-width: 620px) {
  .tool-nav { min-height: 70px; gap: 12px; padding: 10px 14px; }
  .tool-logo { width: 118px; height: 44px; }
  .tool-nav-links { gap: 12px; }
  .tool-languages { grid-template-columns: repeat(3, 32px); box-shadow: 4px 4px 0 var(--ink); }
  .tool-languages a { min-height: 34px; font-size: 10px; }
  .tool-hero-copy { padding: 58px 22px 46px; }
  .tool-hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .tool-hero-aside { padding: 28px 22px 60px; }
  .tool-hero-note { padding: 22px; box-shadow: 8px 8px 0 var(--accent); }
  .tool-widget-section { padding-top: 72px; padding-bottom: 78px; }
  .tool-embed-copy, .tool-code-card { padding: 58px 22px; }
  .tool-code-frame { box-shadow: 7px 7px 0 var(--accent); }
  .tool-faq { width: min(100% - 36px, 1100px); padding: 78px 0; }
  .tool-faq details p { padding-right: 0; }
  .tool-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
