/* The badge builder: one job, one button, three snippets. */

.badge-hero{padding:44px 0 14px;max-width:820px}
.badge-hero h1{font-size:clamp(36px,5vw,58px);line-height:1.04;margin-bottom:14px}
.badge-hero .lede{max-width:64ch}

.badge-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:16px 0 10px;max-width:780px}
.badge-form label{flex:1 1 340px;font-size:12.5px;font-weight:600;letter-spacing:.02em}
.badge-form input{
  width:100%;margin-top:6px;padding:13px 15px;border-radius:10px;
  border:1px solid var(--line-strong);font:400 16px Inter,sans-serif;
  outline:none;background:var(--card);color:var(--ink);
}
.badge-form input:focus{border-color:var(--ink);box-shadow:0 0 0 3px rgba(20,22,26,.06)}
.badge-form .btn{min-height:48px}

.badge-examples{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:4px 0 26px}
.badge-examples .chip{font-size:13px}
.badge-examples .chip span{color:var(--gold);font-weight:600}

.badge-preview{
  background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:20px 22px;margin:22px 0 30px;
}
.badge-preview .section-head{margin-bottom:14px}
.badge-frame{display:inline-block;line-height:0;border-radius:10px}
.badge-frame:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.badge-frame img{max-width:100%;height:auto}
.badge-note{margin:14px 0 0;font-size:13.5px;color:var(--muted);max-width:70ch}

.badge-snippets .section-head{margin-bottom:14px}
.snippet{
  background:var(--card);border:1px solid var(--line);border-radius:14px;
  padding:16px 18px;margin:0 0 12px;
}
.snippet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.snippet-head h3{font-size:16px;margin:0 0 2px}
.snippet-head p{margin:0}
.copy-btn{min-width:76px}
.snippet pre{
  margin:12px 0 0;padding:13px 14px;background:#F4EEE0;border:1px solid #E7DFCC;
  border-radius:10px;overflow-x:auto;font:400 13px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;
  color:#2A2B2E;white-space:pre-wrap;overflow-wrap:anywhere;
}
.badge-why{margin:34px 0 10px;max-width:74ch}
.badge-why h2{font-size:24px;margin-bottom:8px}
.badge-why p{font-size:15px;line-height:1.65;color:var(--muted)}
.badge-why code{font-size:12.5px;background:#F1EBDC;padding:1px 5px;border-radius:4px}
.badge-why .link{margin-right:8px}

@media (max-width:560px){
  .snippet-head{flex-direction:column}
  .copy-btn{width:100%}
}
