/* QStrix — dependency-free stylesheet (replaces Tailwind) */

:root {
  /* Raw palette — constant across themes; never reassigned per theme. */
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-400: #f87171;
  --red-300: #fca5a5;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Semantic theme tokens — LIGHT is the default. */
  --page-bg: var(--gray-50);
  --header-bg: rgba(255, 255, 255, 0.8);
  --footer-bg: var(--gray-100);

  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: var(--gray-200);

  --input-bg: #ffffff;
  --input-border: var(--gray-300);

  --heading: var(--gray-900);
  --text: var(--gray-800);
  --text-strong: var(--gray-700);
  --text-muted: var(--gray-600);
  --text-subtle: var(--gray-500);
  --text-faint: var(--gray-400);

  --control-bg: var(--gray-200);
  --control-bg-hover: var(--gray-300);
  --control-bg-subtle: var(--gray-100);
  --control-text: var(--gray-800);
  --control-disabled-bg: var(--gray-100);
  --control-disabled-text: var(--gray-400);

  --accent: var(--amber-600);
  --on-accent: var(--gray-900);

  --danger: var(--red-600);
  --danger-hover: var(--red-700);

  --toggle-thumb: #ffffff;
  --preview-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);
}

/* DARK theme — opt-in via the header toggle (persisted to localStorage). */
:root[data-theme="dark"] {
  --page-bg: var(--gray-950);
  --header-bg: rgba(3, 7, 18, 0.8);
  --footer-bg: var(--gray-950);

  --card-bg: rgba(17, 24, 39, 0.5);
  --card-border: rgba(31, 41, 55, 0.5);

  --input-bg: rgba(31, 41, 55, 0.5);
  --input-border: var(--gray-700);

  --heading: #ffffff;
  --text: var(--gray-100);
  --text-strong: var(--gray-200);
  --text-muted: var(--gray-400);
  --text-subtle: var(--gray-500);
  --text-faint: var(--gray-600);

  --control-bg: var(--gray-700);
  --control-bg-hover: var(--gray-600);
  --control-bg-subtle: var(--gray-800);
  --control-text: var(--gray-100);
  --control-disabled-bg: var(--gray-700);
  --control-disabled-text: var(--gray-500);

  --accent: var(--amber-400);
  --on-accent: var(--gray-900);

  --danger: var(--red-400);
  --danger-hover: var(--red-300);

  --toggle-thumb: #ffffff;
  --preview-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 1 auto;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.accent {
  color: var(--accent);
}

.hidden {
  display: none !important;
}

/* Layout containers */
.container {
  width: 100%;
  max-width: 80rem; /* 1280px (max-w-7xl) */
  margin-inline: auto;
  padding-inline: 1rem;
}

.container-narrow {
  width: 100%;
  max-width: 56rem; /* 896px (max-w-4xl) */
  margin-inline: auto;
  padding-inline: 1rem;
}

.faq.container-narrow {
  max-width: 48rem; /* 768px (max-w-3xl) */
}

@media (min-width: 640px) {
  .container,
  .container-narrow {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container,
  .container-narrow {
    padding-inline: 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--card-border);
  background: var(--header-bg);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2);
}

.brand-mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--text-strong);
}

@media (max-width: 520px) {
  .site-nav {
    gap: 1rem;
  }
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  background: var(--control-bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  background: var(--control-bg);
  color: var(--text-strong);
}

.theme-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s,
    opacity 0.15s;
}

.btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--amber-400);
}

.btn-secondary {
  background: var(--control-bg);
  color: var(--control-text);
}

.btn-secondary:hover {
  background: var(--control-bg-hover);
}

.btn:disabled {
  cursor: not-allowed;
  background: var(--control-disabled-bg);
  color: var(--control-disabled-text);
}

.btn-secondary:disabled {
  background: var(--control-bg-subtle);
  color: var(--control-disabled-text);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.25);
}

.btn-lg:hover {
  box-shadow: 0 10px 25px -3px rgba(245, 158, 11, 0.4);
}

.btn-upload {
  align-self: flex-start;
  background: var(--control-bg);
  color: var(--control-text);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-upload:hover {
  background: var(--control-bg-hover);
}

.link-danger {
  display: inline-block;
  margin-top: 0.5rem;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--danger);
  cursor: pointer;
  transition: color 0.15s;
}

.link-danger:hover {
  color: var(--danger-hover);
}

/* Hero */
.hero {
  padding-block: 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.hero-badge .dot {
  color: var(--text-subtle);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--heading);
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--amber-500), var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 1rem;
}

/* Generator layout */
.generator {
  padding-block: 4rem;
}

.generator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.generator-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .generator-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .generator-controls {
    grid-column: span 3 / span 3;
  }
  .generator-preview {
    grid-column: span 2 / span 2;
  }
}

/* Content type tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--control-bg-subtle);
  color: var(--text-muted);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.tab:hover {
  background: var(--control-bg);
  color: var(--text-strong);
}

.tab.active {
  background: var(--amber-500);
  color: var(--on-accent);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2);
}

.tab-icon {
  margin-right: 0.375rem;
}

/* Forms */
.content-form {
  margin-top: 1.5rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

select.input {
  padding-block: 0.5rem;
  cursor: pointer;
}

.input::placeholder {
  color: var(--text-subtle);
}

.input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--amber-500);
}

.input-mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

textarea.input {
  resize: vertical;
  min-height: 5rem;
}

.hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Design panel */
.design-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.design-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
}

.color-row {
  display: flex;
  gap: 0.5rem;
}

.color-swatch {
  flex: 0 0 auto; /* the flex row would otherwise shrink it to ~30px */
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.color-swatch-sm {
  width: 2.5rem;
  height: 2.5rem;
}

.color-row .input {
  flex: 1 1 auto;
  min-width: 0;
}

.gradient-options {
  margin-top: 0.75rem;
}

/* Toggle switch */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--control-bg);
  transition: background-color 0.15s;
  flex: 0 0 auto;
}

.toggle-thumb {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--toggle-thumb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}

.toggle-input:checked + .toggle-track {
  background: var(--amber-500);
}

.toggle-input:checked + .toggle-track .toggle-thumb {
  transform: translateX(1.25rem);
}

.toggle-input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 2px var(--amber-400);
}

.toggle-label {
  font-size: 0.875rem;
  color: var(--text-strong);
}

/* Range slider */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  /* A bare range input is only as tall as its track — a 6px touch target.
     The element is sized for the finger; the visible track is drawn on the
     track pseudo-elements so it still reads as a thin line. */
  height: 2.75rem;
  margin-top: -0.25rem;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--control-bg);
}

.range::-moz-range-track {
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--control-bg);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: -0.3125rem; /* centre the 16px thumb on the 6px track */
  border-radius: 9999px;
  background: var(--amber-500);
  cursor: pointer;
  border: 0;
}

.range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 9999px;
  background: var(--amber-500);
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -0.25rem;
}

/* Preview */
.preview-sticky {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* The preview plate stays white in both themes so the QR renders true to
   how it will export, regardless of the page theme. */
.preview-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--preview-shadow);
}

.qr-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 0.5rem;
  background: var(--gray-100);
  color: var(--gray-500); /* the icon; the label below is darker still */
  gap: 0.75rem;
}

.qr-placeholder svg {
  width: 4rem;
  height: 4rem;
}

.qr-placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
}

/* Download panel */
.download-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Features */
.features {
  padding-block: 5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 42rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.15s;
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  transition: background-color 0.15s;
}

.feature-card:hover .feature-icon {
  background: rgba(245, 158, 11, 0.2);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  padding-block: 5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  color: var(--text-subtle);
  transition: transform 0.2s;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  background: var(--footer-bg);
  margin-top: 5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2.5rem;
}

.brand-sm .brand-mark-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  box-shadow: none;
}

.brand-mark-sm svg {
  width: 1rem;
  height: 1rem;
}

.brand-name-sm {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

/* ------------------------------------------------------------------
   Accessibility affordances and status messages
   ------------------------------------------------------------------ */

/* Keyboard entry point straight to the generator, revealed only on focus. */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--amber-500);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Hidden visually but kept in the accessibility tree and the tab order —
   unlike .hidden, which removes the element entirely. The logo file input
   needs this: display:none would detach it from its styled <label>. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* One consistent keyboard focus ring. Text inputs keep their own amber
   box-shadow ring, defined with higher specificity above. */
:where(a, button, select, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Encoding failures, shown on the preview plate. That plate is white in both
   themes, so these colours are fixed rather than themed. */
.qr-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.hint-danger {
  color: var(--danger);
}

/* The FAQ question is a heading wrapping a button; the button carries the
   type styles, so the heading itself should add nothing. */
.faq-heading {
  margin: 0;
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------
   Small screens: fit the header, and size controls for fingers
   ------------------------------------------------------------------ */

/* WCAG 2.5.8 asks for a 24x24 CSS px target; these go to 44 where it costs
   nothing. Scoped to narrow viewports so the desktop layout is unchanged. */
@media (max-width: 640px) {
  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .tab {
    min-height: 2.75rem;
  }

  .theme-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  select.input,
  .btn-upload {
    min-height: 2.75rem;
  }
}

/* Below this the brand wordmark and three nav links no longer fit on one
   line, and they collided. Tighten the nav first… */
@media (max-width: 480px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.8125rem;
  }
}

/* …then drop the wordmark, keeping the logo mark as the home link. */
@media (max-width: 390px) {
  .brand-name {
    display: none;
  }
}

/* The colour rows pair a 48px swatch with a hex field; side by side on a phone
   they leave too little room to show "#000000", so give each its own row. */
@media (max-width: 640px) {
  .design-group .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Narrower still, nothing benefits from two columns. */
@media (max-width: 480px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Numbered steps in the "How to create a QR code" section. */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 9999px;
  background: var(--amber-500);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 700;
}
