/* ==========================================================================
   qr-code-builder.com — light professional theme
   Palette:  white #FFFFFF · panel #F7F8FA · ink #16181D · rule #E4E7EB
             accent #2456CE · success #0E7A4D
   Type:     IBM Plex Sans (display + body) · IBM Plex Mono (data only)
   Approach: white space, hairline rules, one restrained accent.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --panel: #F7F8FA;
  --panel-2: #EFF1F5;
  --ink: #16181D;
  --ink-2: #414852;
  --muted: #636A75;
  --faint: #666D78;
  --rule: #E4E7EB;
  --rule-soft: #EDEFF2;
  --accent: #2456CE;
  --accent-dark: #1B429F;
  --accent-soft: #EDF2FD;
  --ok: #0E7A4D;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cond: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r: 8px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 1px 3px rgba(22, 24, 29, .04);
  --shadow-lift: 0 2px 4px rgba(22, 24, 29, .05), 0 8px 20px rgba(22, 24, 29, .06);
  --shell: 1180px;
  --gut: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img, canvas, svg { max-width: 100%; }
img { height: auto; border: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut); }
.shell-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 999; font-size: 14px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--cond); font-weight: 600; line-height: 1.22;
  letter-spacing: -0.018em; margin: 0 0 .5em; color: var(--ink);
}
h1 { font-size: clamp(2rem, 1.45rem + 2.1vw, 2.9rem); line-height: 1.14; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.72rem); margin-top: 2.4em; letter-spacing: -0.022em; }
h3 { font-size: 1.14rem; margin-top: 2em; letter-spacing: -0.012em; }
h4 { font-size: 1rem; margin-top: 1.7em; font-weight: 600; }
p { margin: 0 0 1.15em; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px;
}
.eyebrow--plain { color: var(--muted); }

.lede {
  font-size: clamp(1.06rem, 1rem + .35vw, 1.2rem);
  color: var(--ink-2); line-height: 1.68; max-width: 64ch; font-weight: 400;
}

.mono { font-family: var(--mono); }

/* ---------- Header ---------- */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.masthead__in { display: flex; align-items: center; gap: 28px; height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 24px; height: 24px; display: block; }
.brand__txt { font-weight: 600; font-size: 1.04rem; letter-spacing: -.02em; color: var(--ink); }
.brand__txt span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: .94rem; font-weight: 500; color: var(--ink-2);
  padding: 7px 12px; border-radius: var(--r-sm); transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--panel); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.navtoggle {
  display: none; margin-left: auto; background: #fff; border: 1px solid var(--rule);
  border-radius: var(--r-sm); padding: 8px 12px; font-size: 13px; font-weight: 500;
  cursor: pointer; color: var(--ink-2); font-family: inherit;
}

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 18px;
    box-shadow: var(--shadow-lift);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--rule-soft); }
  .nav a:hover { background: none; }
}

/* ---------- Breadcrumbs ---------- */

.crumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--faint); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero { padding: 44px 0 12px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero__copy { padding-top: 10px; min-width: 0; }
.hero h1 { max-width: 16ch; }
.hero--wide { padding-bottom: 4px; }
.hero--wide h1 { max-width: 22ch; }

.trustrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.trustrow li {
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 100px; padding: 5px 13px; background: #fff;
}
.trustrow li::before { content: "✓"; color: var(--ok); margin-right: 6px; font-size: 11px; }

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
  .hero h1 { max-width: none; }
}

/* ---------- Generator ---------- */

.studio {
  display: grid; grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--rule); border-radius: 12px; background: #fff;
  overflow: hidden; box-shadow: var(--shadow);
}
.studio--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1080px) { .studio--split { grid-template-columns: minmax(0, 1fr); } }

.studio__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--rule-soft); background: var(--panel);
}
.studio__title { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: -.005em; }
.studio__title b { color: var(--muted); font-weight: 400; }

.types {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.types button {
  flex: none; font-family: inherit; font-size: .88rem; font-weight: 500;
  background: #fff; border: 1px solid var(--rule); border-radius: 100px;
  padding: 6px 14px; cursor: pointer; color: var(--ink-2); white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.types button:hover { border-color: var(--faint); color: var(--ink); }
.types button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.panelform { padding: 22px 18px 24px; }

.field { margin-bottom: 16px; }
.field label, .fieldset__legend {
  display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px;
}
.field input[type="text"], .field input[type="url"], .field input[type="tel"],
.field input[type="email"], .field input[type="number"], .field input[type="datetime-local"],
.field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 10px 13px; min-width: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(36, 86, 206, .12);
}
.field .hint { font-size: 13px; color: var(--muted); margin: 7px 0 0; line-height: 1.55; }

.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.checkline input { flex: none; margin-top: 3px; }
.checkline span { flex: 1; }
.checkline input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Design drawer */
.drawer { border-top: 1px solid var(--rule-soft); }
.drawer > summary {
  list-style: none; cursor: pointer; padding: 14px 18px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer > summary:hover { background: var(--panel); }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary::after { content: "＋"; color: var(--muted); font-size: 13px; }
.drawer[open] > summary::after { content: "－"; }
.drawer__body { padding: 6px 18px 22px; }

.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch {
  width: 26px; height: 26px; border-radius: var(--r-sm); border: 1px solid rgba(22, 24, 29, .12);
  cursor: pointer; padding: 0; transition: transform .12s ease;
}
.swatch:hover { transform: translateY(-1px); }
input[type="color"] {
  width: 100%; height: 40px; padding: 3px; border: 1px solid var(--rule);
  border-radius: var(--r-sm); background: #fff; cursor: pointer;
}

.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipset button {
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 7px 12px; cursor: pointer; color: var(--ink-2); transition: all .15s ease;
}
.chipset button:hover { border-color: var(--faint); }
.chipset button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Preview */
.stage {
  border-left: 1px solid var(--rule-soft); background: var(--panel);
  padding: 26px 18px; display: flex; flex-direction: column; align-items: center; gap: 18px;
  position: sticky; top: 66px; align-self: start;
}
@media (max-width: 1080px) {
  .stage { border-left: 0; border-top: 1px solid var(--rule-soft); position: static; }
}

.plate {
  position: relative; padding: 10px; background: #fff;
  border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow);
  /* square, and never wider than the column it sits in */
  width: min(286px, 100%); aspect-ratio: 1 / 1; box-sizing: border-box;
  display: grid; place-items: center;
}
/* the preview is inline SVG — vector, so it never resamples at any zoom or
   device pixel ratio, and needs no pixelated rendering hint */
.qrbox { width: 100%; height: 100%; display: grid; place-items: center; }
.qrbox svg { display: block; width: 100%; height: 100%; }

/* Live specification readout */
.readout {
  width: 100%; font-family: var(--mono); font-size: 11.5px; line-height: 1.5;
  border: 1px solid var(--rule); border-radius: var(--r); background: #fff;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden;
}
.readout div { padding: 9px 12px; border-bottom: 1px solid var(--rule-soft); min-height: 52px; }
.readout div:nth-child(odd) { border-right: 1px solid var(--rule-soft); }
.readout div:nth-last-child(-n+2) { border-bottom: 0; }
.readout .k {
  color: var(--faint); letter-spacing: .05em; text-transform: uppercase;
  font-size: 9.5px; display: block; margin-bottom: 2px; font-family: var(--sans); font-weight: 600;
}
.readout .v { color: var(--ink); font-size: 12.5px; }
.readout .v em { font-style: normal; color: var(--muted); }
.readout .v.warn { color: var(--accent); }

.dlrow { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.dlrow .btn { flex: 1 1 auto; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-size: .93rem; font-weight: 500; line-height: 1.2;
  border-radius: var(--r-sm); padding: 11px 18px; text-decoration: none;
  border: 1px solid var(--rule); background: #fff; color: var(--ink);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--panel); border-color: var(--faint); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: var(--rule); color: var(--ink-2); background: #fff; }
.btn--ghost:hover { color: var(--ink); background: var(--panel); }
.btn--sm { font-size: .86rem; padding: 8px 13px; }

.notice { font-size: 12.5px; color: var(--muted); text-align: center; max-width: 36ch; margin: 0; line-height: 1.55; }
.notice b { color: var(--ok); font-weight: 600; }

/* ---------- Sections ---------- */

.band { padding: 76px 0; border-top: 1px solid var(--rule-soft); }
.band--panel { background: var(--panel); border-top-color: var(--rule); }
.band--tight { padding: 40px 0; }

.split { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.split__aside { min-width: 0; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding-top: 8px; }
.split__aside b { display: block; color: var(--muted); font-weight: 600; }

/* Prose */
.prose { max-width: 68ch; min-width: 0; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--faint); }
.prose blockquote {
  margin: 1.7em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--rule);
  font-size: 1.04rem; color: var(--ink-2);
}
.prose blockquote cite { display: block; margin-top: .5em; font-size: 13px; font-style: normal; color: var(--muted); }
.prose code {
  font-family: var(--mono); font-size: .86em; background: var(--panel-2);
  padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; color: var(--ink);
}
.prose pre {
  max-width: 100%; background: #FBFCFD; border: 1px solid var(--rule); color: var(--ink);
  padding: 18px 20px; border-radius: var(--r); overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
}
.prose pre code { background: none; padding: 0; color: inherit; }

/* Answer-first block */
.answer {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: var(--r); background: var(--accent-soft);
  padding: 20px 24px; margin: 0 0 28px; max-width: 70ch;
}
.answer p { margin: 0; font-size: 1.04rem; color: var(--ink); line-height: 1.65; }
.answer .k {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 9px;
}

/* Tables */
.tablewrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin: 0 0 1.7em;
  border: 1px solid var(--rule); border-radius: var(--r); background: #fff;
}
table { border-collapse: collapse; width: 100%; font-size: 14.8px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th {
  font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; background: var(--panel); border-bottom-color: var(--rule);
}
tbody tr:hover { background: #FBFCFD; }
td.num, th.num { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* Cards */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); } }

.card {
  display: block; background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  padding: 20px; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.card:hover { border-color: var(--faint); box-shadow: var(--shadow-lift); transform: translateY(-2px); text-decoration: none; }
.card__k {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 9px;
}
.card__t { font-weight: 600; font-size: 1.05rem; margin: 0 0 6px; letter-spacing: -.015em; color: var(--ink); }
.card__d { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

.linklist { list-style: none; padding: 0; margin: 0; column-gap: 40px; }
.linklist li { border-bottom: 1px solid var(--rule-soft); break-inside: avoid; }
.linklist a {
  display: flex; justify-content: space-between; gap: 14px; padding: 13px 0;
  font-size: 15px; color: var(--ink); font-weight: 500;
}
.linklist a:hover { color: var(--accent); text-decoration: none; }
.linklist .t {
  font-size: 11.5px; color: var(--faint); letter-spacing: .04em; text-transform: uppercase;
  align-self: center; font-weight: 500; flex: none;
}
@media (min-width: 700px) { .linklist--2 { column-count: 2; } .linklist--3 { column-count: 3; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 0 0 26px 54px;
  border-left: 1px solid var(--rule); margin-left: 15px;
}
.steps li::before {
  content: counter(s); position: absolute; left: -15px; top: -2px;
  width: 30px; height: 30px; background: #fff; border: 1px solid var(--rule);
  color: var(--accent); border-radius: 50%; font-size: 12.5px; font-weight: 600;
  display: grid; place-items: center;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps h3 { margin: 3px 0 5px; font-size: 1.03rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 38px 18px 0; position: relative;
  font-size: 1.04rem; font-weight: 600; letter-spacing: -.012em; color: var(--ink);
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 16px;
  font-size: 1.2rem; color: var(--muted); font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* Stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule); border-radius: var(--r); background: #fff; overflow: hidden;
}
.stats div { padding: 22px; border-right: 1px solid var(--rule-soft); }
.stats div:last-child { border-right: 0; }
.stats .n { font-size: 1.95rem; font-weight: 600; letter-spacing: -.03em; display: block; line-height: 1.15; color: var(--ink); }
.stats .l { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
}

/* Scanner */
.dropzone {
  border: 1.5px dashed var(--rule); border-radius: 10px; background: var(--panel);
  padding: 52px 24px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover { border-color: var(--faint); }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone p { margin: 0; color: var(--muted); font-size: 14.5px; }
.dropzone b { display: block; font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.result { margin-top: 20px; }
.result__payload {
  font-family: var(--mono); font-size: 13px; background: var(--panel); color: var(--ink);
  border: 1px solid var(--rule);
  padding: 16px 18px; border-radius: var(--r); overflow-wrap: anywhere; white-space: pre-wrap;
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan {
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  padding: 26px 24px; box-shadow: var(--shadow);
}
.plan--mark { border-color: var(--accent); position: relative; box-shadow: var(--shadow-lift); }
.plan--mark::after {
  content: "MOST USED"; position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 600;
  letter-spacing: .08em; padding: 3px 10px; border-radius: 100px;
}
.plan__p { font-size: 2.3rem; font-weight: 600; letter-spacing: -.035em; line-height: 1; margin: 12px 0 4px; color: var(--ink); }
.plan__p small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0; font-size: 14.5px; }
.plan li { padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-size: 12px; }
.plan li.off { color: var(--faint); }
.plan li.off::before { content: "—"; color: var(--rule); }

/* Footer */
.foot { border-top: 1px solid var(--rule); background: var(--panel); padding: 60px 0 30px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 30px 24px; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; } }
.foot h3 {
  font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin: 0 0 14px;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 9px; }
.foot a { font-size: 14.2px; color: var(--ink-2); }
.foot a:hover { color: var(--accent); }
.foot__note { font-size: 13.5px; color: var(--muted); max-width: 32ch; margin: 14px 0 0; line-height: 1.65; }
.foot__base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12.5px; color: var(--faint);
}
.foot__base a { color: var(--muted); font-size: 12.5px; }

/* Misc */
.updated { font-size: 12.5px; color: var(--faint); }
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Responsive layer — tablet and mobile
   ========================================================================== */

/* ---- Tablet: 1024px and below ---- */
@media (max-width: 1024px) {
  :root { --gut: 22px; }
  .band { padding: 60px 0; }
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
}
@media (min-width: 861px) and (max-width: 1024px) {
  .split { grid-template-columns: 160px minmax(0, 1fr); gap: 34px; }
}

/* ---- Tablet portrait: 860px and below ---- */
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .band { padding: 52px 0; }
  .band--tight { padding: 32px 0; }
  .split__aside {
    padding-top: 0; margin-bottom: 4px;
    font-size: 11.5px; letter-spacing: .07em;
  }
  .prose, .faq { max-width: none; }
  .answer { max-width: none; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---- Mobile: 640px and below ---- */
@media (max-width: 640px) {
  :root { --gut: 18px; }

  body { font-size: 16.5px; line-height: 1.65; }

  .band { padding: 44px 0; }
  .band--tight { padding: 28px 0; }
  .hero { padding: 28px 0 8px; }

  h2 { margin-top: 1.9em; }
  h3 { margin-top: 1.6em; }
  .lede { font-size: 1.04rem; }

  /* header */
  .masthead__in { height: 58px; gap: 14px; }
  .nav { top: 58px; }
  .brand__txt { font-size: .98rem; }
  .navtoggle { padding: 9px 13px; }

  .crumbs { padding: 16px 0 0; font-size: 12.5px; }

  /* generator */
  .stage { padding: 22px 16px; gap: 14px; }
  .plate { padding: 8px; width: min(286px, 100%); }
  .panelform { padding: 18px 16px 20px; }
  .types { padding: 12px 16px; gap: 5px; }
  .types button { padding: 8px 14px; font-size: .85rem; }
  .studio__head { padding: 12px 16px; }
  .drawer > summary { padding: 15px 16px; }
  .drawer__body { padding: 6px 16px 20px; }
  .chipset button { padding: 9px 12px; }
  .swatch { width: 32px; height: 32px; }
  .dlrow .btn { flex: 1 1 100%; }
  .readout { font-size: 11px; }
  .readout div { min-height: 48px; padding: 8px 10px; }

  /* inputs stay 16px so iOS does not zoom the page on focus */
  .field input[type="text"], .field input[type="url"], .field input[type="tel"],
  .field input[type="email"], .field input[type="number"],
  .field input[type="datetime-local"], .field select { font-size: 16px; }
  .field textarea { font-size: 14px; }
  .row2, .row3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .row2 > .field, .row3 > .field { margin-bottom: 14px; }

  /* content */
  .prose pre { font-size: 12px; padding: 14px 15px; }
  .prose code { font-size: .84em; }
  .answer { padding: 16px 18px; }
  .answer p { font-size: 1rem; }
  table { font-size: 14px; }
  th, td { padding: 10px 13px; }
  .tablewrap { border-radius: var(--r-sm); }

  .card { padding: 17px; }
  .grid { gap: 12px; }

  .steps li { padding: 0 0 22px 40px; margin-left: 13px; }
  .steps li::before { width: 26px; height: 26px; left: -13px; font-size: 11.5px; }

  .faq summary { padding: 16px 34px 16px 0; font-size: 1rem; }
  .faq summary::after { top: 14px; }

  .linklist a { padding: 14px 0; }
  .linklist .t { display: none; }

  .plan { padding: 22px 20px; }
  .plan__p { font-size: 2rem; }

  .dropzone { padding: 38px 18px; }

  /* footer — larger touch targets, tighter columns */
  .foot { padding: 44px 0 24px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 20px; }
  .foot li { margin-bottom: 2px; }
  .foot a { display: inline-block; padding: 7px 0; font-size: 14px; }
  .foot__note { max-width: none; }
  .foot__base { margin-top: 30px; gap: 10px; flex-direction: column; }

  .trustrow { gap: 7px; margin-top: 20px; }
  .trustrow li { font-size: 12px; padding: 5px 11px; }
}

/* ---- Small phones: 400px and below ---- */
@media (max-width: 400px) {
  :root { --gut: 15px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .studio__head { flex-wrap: wrap; }
  .plate { width: min(260px, 100%); }
}

/* ---- Touch devices: no hover lift, bigger hit areas ---- */
@media (hover: none) {
  a.card:hover { transform: none; box-shadow: var(--shadow); }
  .swatch:hover { transform: none; }
  .btn, .types button, .chipset button { min-height: 40px; }
}

/* ---- Print ---- */
@media print {
  .masthead, .foot, .nav, .navtoggle, .dlrow, .drawer, .types, .crumbs { display: none !important; }
  body { font-size: 11pt; }
  .band { padding: 12pt 0; border: 0; }
  .studio, .card, .plate { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; }
}

/* Statutory company identification in the footer */
.foot__legal {
  font-size: 12.5px; line-height: 1.6; color: var(--faint);
  max-width: 34ch; margin: 12px 0 0;
}
.foot__legal strong { color: var(--muted); font-weight: 600; }

/* On-page contents */
.toc { min-width: 0; }
.toc ol {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 36px;
}
@media (max-width: 700px) { .toc ol { columns: 1; } }
.toc li {
  counter-increment: toc; break-inside: avoid;
  border-bottom: 1px solid var(--rule-soft);
}
.toc a {
  display: block; padding: 9px 0 9px 26px; position: relative;
  font-size: 15px; color: var(--ink); font-weight: 500;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero); position: absolute; left: 0;
  font-size: 11.5px; font-family: var(--mono); color: var(--faint); top: 12px;
}
.toc a:hover { color: var(--accent); text-decoration: none; }
.toc { counter-reset: toc; }
/* offset anchor targets so the sticky header does not cover the heading */
.band[id] { scroll-margin-top: 78px; }

/* Reserve the generator's height before JavaScript builds it, so populating
   the panel does not shift the page (cumulative layout shift). */
[data-studio] { min-height: 810px; }
@media (max-width: 1080px) { [data-studio] { min-height: 1160px; } }
@media (max-width: 640px) { [data-studio] { min-height: 1180px; } }
@media (max-width: 400px) { [data-studio] { min-height: 1120px; } }
