/* Self-hosted Outfit, Inter and Montserrat; no font-provider requests. */
@font-face {
  font-family: Inter;
  src: url('fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url('fonts/Montserrat-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url('fonts/Outfit-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --forest: #183d35;
  --lime: #77c129;
  --lime-pale: #f0f8ea;
  --turquoise: #2ec4b6;
  --turquoise-pale: #e5f8f6;
  --coral: #ff8b7a;
  --coral-pale: #fff1ee;
  --honey: #f4c95d;
  --honey-pale: #fff8e5;
  --paper: #e3ecdc;
  --white: #f0f6ec;
  --border: #cbd8c3;
  --muted: #55634f;
  --radius: 18px;
  color: var(--forest);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.55;
}
.country-picker { position: relative; width: 100%; }
.country-trigger {
  width: 100%; min-height: 48px; padding: 12px 40px 12px 16px;
  text-align: left; border: 1px solid var(--border); border-radius: 12px;
  background: var(--white); color: var(--forest); position: relative;
  font: inherit;
}
.country-trigger::after { content: '⌄'; position: absolute; right: 16px; top: 12px; }
.country-trigger[aria-expanded=true] { border-color: var(--lime); }
.country-panel {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px);
  padding: 12px; background: var(--white); color: var(--forest);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 30px #0003;
}
.country-panel[hidden] { display: none; }
.country-panel input { width: 100%; margin: 0 0 8px; min-height: 44px; }
.country-options { max-height: min(240px, 32dvh); overflow-y: auto; overscroll-behavior: contain; }
.country-option { padding: 12px; min-height: 44px; cursor: pointer; overflow-wrap: anywhere; border-radius: 8px; }
.country-option:hover, .country-option.is-active { background: var(--lime-pale); }
.country-option[aria-selected=true] { font-weight: 600; box-shadow: inset 3px 0 var(--lime); }
.country-status { margin: 8px 0 0; font-size: .875rem; }
.qr-field > select[hidden] { display: none; }
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
}
button, input, textarea, select {
  font: inherit;
}
button {
  font-weight: 600;
}
strong, b {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
}
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
button, a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #357520;
  outline-offset: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
}
h1, h2 {
  font-weight: 700;
}
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  text-wrap: balance;
}
p {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
}
li, dt, dd {
  overflow-wrap: anywhere;
}
.wrap {
  width: min(calc(100% - 32px), 1200px);
  margin-inline: auto;
}
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 14px;
  background: var(--white);
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 7px;
}
.wordmark, .brand-name {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -1.3px;
  color: var(--wordmark-forest, #183d35);
  line-height: 1;
  white-space: nowrap;
}
.brand-name {
  font-size: 1em;
  letter-spacing: -.04em;
  line-height: inherit;
}
.brand-qr {
  font-family: Montserrat, Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-inline-start: .025em;
  color: var(--wordmark-green, #8bc34a);
}
.brand-dot {
  color: var(--wordmark-forest, #183d35);
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}
.language {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 600;
}
.language-divider, .language [aria-current=false] {
  color: var(--muted);
}
.language [aria-current=true] {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--forest);
}
.menu-close {
  display: none;
}
.menu-toggle[aria-expanded=true] .menu-open {
  display: none;
}
.menu-toggle[aria-expanded=true] .menu-close {
  display: block;
}
.main-nav {
  display: none;
  min-width: 0;
  flex-basis: 100%;
  padding: 8px 0 16px;
  border-top: 1px solid var(--border);
}
.main-nav.is-open {
  display: grid;
}
.main-nav :is(a, button) {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}
.main-nav .nav-create {
  background: var(--lime-pale);
}
.main-nav button {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.main-nav :is(a, button):hover, .footer-links a:hover {
  color: #326d21;
}
.hero {
  padding-block: 34px 28px;
}
.eyebrow {
  font-size: .75rem;
  letter-spacing: 1.2px;
  font-weight: 600;
  line-height: 1.6;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  flex: 0 0 7px;
}
h1 {
  font-size: clamp(2.15rem, 9vw, 3rem);
  font-weight: 700;
  letter-spacing: -1.7px;
  line-height: 1.12;
}
.headline-second {
  display: block;
}
h1 em {
  font-style: normal;
  color: #3f7c1e;
}
.hero-description {
  max-width: 560px;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 23px;
}
.button, .primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
}
.button-lime {
  background: var(--lime);
  color: var(--forest);
}
.button-lime:hover {
  background: #8acf45;
}
.hero-secondary {
  border: 1px solid var(--turquoise);
  border-radius: 999px;
  background: var(--turquoise-pale);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: .9375rem;
  text-decoration: none;
  font-weight: 600;
}
.hero-secondary:hover {
  border-color: var(--forest);
}
.hero-benefits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 19px 0 0;
  font-size: .875rem;
  color: var(--muted);
}
.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #cddfbc;
  border-radius: 999px;
  background: #edf6e4;
  color: #254b28;
  font-weight: 600;
  line-height: 1.35;
}
.hero-benefits .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  color: #3e7f22;
}
.hero-art-slot {
  display: none;
}
.hero-art-slot.has-approved-art {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 24px auto 0;
  min-width: 0;
}
.hero-art-slot.has-approved-art .hero-art-fallback,
.hero-art-slot.has-approved-art .art-caption {
  display: none;
}
.hero-art-slot picture {
  display: block;
}
.hero-art-slot picture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}
@media (min-width: 960px) {
  .hero-art-slot.has-approved-art { margin: 0; }
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.panel {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 5px 20px #183d3503;
  padding: 20px 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  flex: 1;
}
.step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: var(--lime-pale);
  border: 1px solid #d8eaca;
  border-radius: 8px;
  color: #356c23;
  font-weight: 600;
  font-size: .875rem;
}
.free-tag {
  background: var(--lime-pale);
  color: #356c23;
  font-size: .6875rem;
  letter-spacing: .6px;
  font-weight: 600;
  padding: 5px 7px;
  border-radius: 5px;
}
.type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.type-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 600;
  padding: 10px 6px;
}
.type-switch button[aria-pressed=true] {
  border-color: var(--lime);
  background: var(--lime-pale);
  color: var(--forest);
  box-shadow: inset 0 0 0 1px #77c12918;
}
.type-switch button { overflow-wrap: anywhere; }
#emailTab { padding-inline: 14px; }
#emailTab span { flex: 0 1 auto; min-width: 0; max-width: 9ch; }
@media (max-width: 359px) {
  #emailTab { flex-direction: column; gap: 4px; padding-inline: 8px; }
  #emailTab span { max-width: 100%; }
}
.field-help { margin-block: 14px; border: 1px solid var(--border); border-radius: 12px; padding-inline: 14px; }
.field-help summary { min-height: 48px; padding-block: 12px; cursor: pointer; font-weight: 600; }
.field-help ol { padding: 0 0 14px 22px; font-size: .9375rem; }
.field-help li + li { margin-top: 10px; }
.field-help h4 { margin: 12px 0; font-size: 1rem; }
#socialSteps > .hint { margin: 0 0 8px; }
#socialSteps > .text-link { margin-bottom: 8px; }
.check-field { display: flex; gap: 12px; align-items: center; min-height: 48px; margin-block: 12px; }
.check-field input { flex: 0 0 auto; width: 20px; height: 20px; }
.privacy-note { padding: 14px; background: var(--honey-pale); border-radius: 12px; font-size: .9375rem; margin-block: 14px; }
.qr-field { min-width: 0; }
.qr-field + .qr-field { margin-top: 24px; }
.qr-field > label { margin: 0 0 8px; }
.qr-field > input, .qr-field > select, .qr-field > textarea { display: block; margin: 0; }
.qr-field > .hint { margin-top: 8px; }
#wifiPasswordGroup > .hint { margin-top: 0; }
#wifiFields > .check-field { margin-block: 20px 12px; }
#wifiPasswordGroup .text-button { min-height: 44px; }
@media (min-width: 600px) { .type-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 8px;
}
input:not([type=checkbox]):not([type=color]), textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  background: var(--white);
  color: var(--forest);
  border: 1px solid #d4ddd3;
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
}
input::placeholder, textarea::placeholder {
  color: #717b75;
  opacity: 1;
}
textarea {
  resize: vertical;
}
.hint {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 8px;
}
.utm-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f3faf8;
  border: 1px solid #dbefea;
  border-radius: 12px;
  padding: 13px 12px;
  margin-top: 20px;
}
.utm-toggle label {
  margin: 0;
  font-size: .9375rem;
  cursor: pointer;
}
.utm-toggle .hint {
  margin-top: 5px;
}
.switch {
  appearance: none;
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  cursor: pointer;
}
.switch::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 40px;
  height: 23px;
  border-radius: 20px;
  background: #b6c6ba;
}
.switch::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px #183d3520;
  transition: transform .15s;
}
.switch:checked::before {
  background: #397d2d;
}
.switch:checked::after {
  transform: translateX(17px);
}
.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 16px;
  padding-top: 24px;
}
.field-grid > div {
  min-width: 0;
}
.field-grid .full {
  grid-column: 1 / -1;
}
.design-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.design-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 16px;
}
.design-grid > div {
  min-width: 0;
}
.design-grid label {
  font-size: .9375rem;
}
.color-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #d4ddd3;
  border-radius: 10px;
  min-height: 54px;
}
.color-control .color-open {
  position: absolute;
  inset: 0;
  opacity: 0;
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  z-index: 1;
  cursor: pointer;
}
.color-control input[hidden] { display: none; }
.color-open { border-radius: inherit; }
.color-editor { margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.color-editor[hidden] { display: none; }
.color-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.color-editor-heading button { min-height: 44px; }
.color-visual-picker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; }
.color-visual-picker input { width: 64px; height: 44px; padding: 3px; margin: 0; cursor: pointer; }
.color-visual-copy { display: grid; gap: 2px; }
.color-visual-copy .hint { margin: 0; font-size: .875rem; font-weight: 400; }
.color-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.color-formats .color-format { flex: 1 1 48px; min-height: 44px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: inherit; padding: 8px 10px; font-weight: 600; }
.color-formats .color-format[aria-pressed=true] { background: var(--forest); color: #fff; border-color: var(--forest); }
.color-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.color-channel { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 6px; align-items: center; }
.color-channel:only-child { grid-column: 1 / -1; }
.color-channel label { margin: 0; font-weight: 600; font-size: .875rem; white-space: nowrap; }
.color-channel input { min-width: 0; width: 100%; margin: 0; padding: 8px; }
.color-channel input[type=number] { appearance: textfield; }
.color-channel input::-webkit-inner-spin-button, .color-channel input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.color-channel input[aria-invalid=true] { outline: 2px solid #c63e36; }
.color-channel .color-channel-range { grid-column: 1 / -1; height: 44px; padding: 0; accent-color: var(--lime); cursor: pointer; }
[data-theme=dark] .color-editor { background: var(--paper); }
[data-theme=dark] .color-formats .color-format[aria-pressed=true] { background: var(--lime); color: #10251e; border-color: var(--lime); }
.color-dot { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--control-color); border: 1px solid #8a9e9290; pointer-events: none; }
.design-section .color-control.is-selected { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--forest); }
.color-control:focus-within { outline: 2px solid var(--lime); outline-offset: 5px; }
.color-control input::-webkit-color-swatch-wrapper {
  padding: 2px;
}
.color-control input::-webkit-color-swatch {
  border: 1px solid #183d3520;
  border-radius: 50%;
}
.color-control output {
  pointer-events: none;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .875rem;
}
.error {
  color: #a3322b;
  margin-top: 16px;
  font-size: .9375rem;
}
.error:empty {
  display: none;
}
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 20px;
}
.editor-actions .text-button {
  flex: 1 1 160px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--lime-pale);
  color: inherit;
  text-decoration: none;
}
.editor-actions .text-button:hover { border-color: var(--lime); text-decoration: none; }
.editor-actions .text-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.editor-actions #reset { background: var(--turquoise-pale); }
.editor-actions #reset:hover { border-color: var(--turquoise); }
.editor-actions #saveDraft[hidden] { display: none; }
.editor-actions #saveDraft[hidden] + #reset {
  flex: 0 1 auto;
  margin-inline: auto;
  min-width: min(180px, 100%);
}
.drafts > summary {
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--honey-pale);
  color: var(--forest);
}
.drafts > summary:hover { border-color: var(--honey); }
.drafts > summary:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }
.text-button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.text-button:hover, .text-link:hover {
  text-decoration: underline;
}
.text-button {
  min-width: 44px;
}
.drafts {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.drafts summary {
  cursor: pointer;
  min-height: 44px;
  padding-block: 10px;
  font-size: .9375rem;
}
.draft-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.draft-row > span {
  flex-basis: 100%;
  overflow-wrap: anywhere;
  font-size: .875rem;
}
.draft-row .draft-action {
  min-height: 44px;
  min-width: 64px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--tone);
  color: var(--tone-ink);
  font-size: .875rem;
  text-decoration: none;
}
.draft-row .draft-action:hover { border-color: currentColor; text-decoration: none; }
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview-heading h2 {
  font-size: 1.125rem;
  font-weight: 700;
}
.live {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: .6875rem;
  letter-spacing: .8px;
  font-weight: 600;
  flex-shrink: 0;
  color: #4f692d;
}
.qr-stage {
  width: min(256px, 100%);
  aspect-ratio: 1;
  padding: 10px;
  margin: 24px auto 16px;
  position: relative;
  background: #fbfcf9;
  border-radius: 14px;
}
#qrImage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
#qrImage svg {
  width: 100%;
  height: 100%;
  display: block;
}
.corner {
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: #b0c991;
  border-style: solid;
}
.tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-radius: 10px 0 0;
}
.tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-radius: 0 10px 0 0;
}
.bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 10px;
}
.br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 10px 0;
}
.quality {
  font-size: .875rem;
  line-height: 1.6;
  color: #397322;
  text-align: center;
  margin-bottom: 20px;
}
.quality:empty {
  display: none;
}
.quality.warning {
  color: #8b501a;
}
.encoded {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  padding: 12px;
  margin-bottom: 20px;
}
.mini-label {
  font-size: .75rem;
  letter-spacing: .8px;
  font-weight: 600;
  color: var(--muted);
}
.encoded output {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
  font-size: .875rem;
  line-height: 1.7;
  max-height: 128px;
  overflow-y: auto;
  margin-top: 8px;
}
.encoded > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 12px;
}
.encoded #copy, .encoded #testLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--forest);
  text-decoration: none;
}
.encoded #copy { background: var(--honey-pale); }
.encoded #testLink { background: var(--lime-pale); }
.encoded #copy:hover { border-color: var(--honey); text-decoration: none; }
.encoded #testLink:hover { border-color: var(--lime); }
.encoded a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.encoded a[aria-disabled=true] {
  color: var(--muted);
}
.download-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 8px;
  margin-top: 12px;
}
.primary {
  background: var(--forest);
  color: var(--white);
  padding-inline: 12px;
}
.primary:hover:enabled {
  background: #245547;
}
.primary .icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
.secondary {
  background: var(--white);
  border-color: #c6d3c2;
  color: var(--forest);
  padding-inline: 10px;
}
#svg { transition: background-color .18s ease, border-color .18s ease; }
#svg:hover:enabled, #svg:focus-visible:enabled {
  background: var(--lime-pale);
  border-color: var(--lime);
}
@media (prefers-reduced-motion: reduce) { #svg { transition: none; } }
.centered {
  text-align: center;
}
.independence {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 15px 12px;
  border-radius: 12px;
  background: var(--lime-pale);
  margin-top: 20px;
}
.independence .icon {
  color: #4a7e2b;
}
.independence strong {
  font-size: .9375rem;
  font-weight: 600;
}
.independence p {
  font-size: .875rem;
  color: var(--muted);
  margin-top: 4px;
}
.trust-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-block: 22px 0;
}
.tone-lime {
  --tone: var(--lime-pale);
  --tone-strong: #dcefc5;
  --tone-ink: #356c23;
}
.tone-turquoise {
  --tone: var(--turquoise-pale);
  --tone-strong: #c1eee8;
  --tone-ink: #14665e;
}
.tone-coral {
  --tone: var(--coral-pale);
  --tone-strong: #ffd9d1;
  --tone-ink: #a64235;
}
.tone-honey {
  --tone: var(--honey-pale);
  --tone-strong: #ffeab4;
  --tone-ink: #855c0b;
}
.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  background: var(--tone);
  border-radius: var(--radius);
}
.icon-badge {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--tone-strong);
  color: var(--tone-ink);
  display: inline-grid;
  place-items: center;
}
.trust-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 3px;
}
.trust-card p {
  font-size: .9375rem;
  margin-top: 5px;
  color: var(--muted);
}
.learn-section {
  padding-block: 46px 30px;
}
.learn-intro .eyebrow {
  color: #457132;
}
.learn-intro h2 {
  font-size: clamp(1.7rem, 5vw, 2.25rem);
  letter-spacing: -.8px;
  margin-top: 10px;
  max-width: 650px;
}
.learn-intro > p:last-child {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
}
.learn-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 24px;
  align-items: start;
}
.learn-card {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
}
.learn-card summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 20px 16px;
}
.learn-card summary::-webkit-details-marker {
  display: none;
}
.learn-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 16px;
}
.learn-card summary > p {
  margin-top: 9px;
  font-size: .9375rem;
  color: var(--muted);
}
.learn-action {
  display: inline-flex;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--lime-pale);
  color: var(--forest);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 600;
  margin-top: 12px;
}
.learn-action .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.learn-card[open] .learn-action .icon {
  transform: rotate(180deg);
}
.learn-body {
  padding: 0 20px 24px;
  font-size: .9375rem;
  color: var(--muted);
}
.learn-card summary:hover .learn-action, .learn-card summary:focus-visible .learn-action {
  background: var(--paper);
  border-color: var(--lime);
}
.learn-body > .text-link {
  max-width: 100%;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--turquoise-pale);
  color: var(--forest);
  text-decoration: none;
}
.learn-body > .text-link:hover {
  background: var(--paper);
  border-color: var(--turquoise);
  text-decoration: none;
}
.learn-body p {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.learn-body p + p {
  border-top: 0;
  padding-top: 0;
  margin-top: 16px;
}
.learn-body h4 {
  font-size: 1rem;
  margin: 20px 0 8px;
}
.learn-body h4 + p {
  border-top: 0;
  padding-top: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.control-image-banner { position: relative; }
.control-mobile-layout {
  overflow: hidden;
  border-radius: var(--radius);
  background: #effaf0;
  border: 1px solid #e1efd9;
}
.control-banner-copy { padding: 24px 20px 0; }
.control-banner-copy .eyebrow { color: #39624a; }
.control-banner-copy h2 { font-size: clamp(1.65rem, 5vw, 2.125rem); line-height: 1.2; margin-top: 12px; letter-spacing: -.6px; }
.control-banner-copy > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1rem; }
.control-mobile-cta { margin-top: 20px; color: #fff; background: #00432f; border-color: #00432f; }
.control-mobile-cta:hover { background: #096045; }
.control-mobile-art { display: block; width: 100%; height: auto; margin-top: 12px; }
.control-desktop-art { display: none; }
.control-banner-note { margin-top: 10px; font-size: .875rem; text-align: center; color: var(--muted); }
.banner-motion-ready { opacity: 0; transform: translateY(14px); }
.banner-motion-ready.banner-revealed { opacity: 1; transform: none; transition: opacity .45s ease-out, transform .45s ease-out; }
@media (min-width: 1024px) {
  .control-mobile-layout { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .control-mobile-cta, .control-mobile-art { display: none; }
  .control-desktop-art { display: block; border-radius: var(--radius); overflow: hidden; }
  .control-desktop-art img { display: block; width: 100%; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-motion-ready { opacity: 1; transform: none; transition: none; }
}
.control-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 28px;
  padding: 26px 20px;
  border-radius: var(--radius);
  border: 1px solid #dfead8;
  background: #eff7e9;
  overflow: hidden;
}
.control-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('graphics/qr-dots-texture.svg') repeat;
  background-size: 480px 260px;
  opacity: .65;
}
.control-copy {
  max-width: 640px;
}
.control-copy .eyebrow {
  color: #46722f;
}
.control-copy h2 {
  font-size: clamp(1.7rem, 5vw, 2.125rem);
  letter-spacing: -.8px;
  margin-top: 10px;
}
.control-copy > p:not(.eyebrow) {
  font-size: 1rem;
  color: #54674c;
  margin-top: 12px;
}
.button-white {
  background: var(--white);
  color: var(--forest);
  border-color: #d9e4d1;
  margin-top: 20px;
}
.button-white:hover {
  border-color: #8ab76e;
}
.direct-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #ffffffc9;
  border: 1px solid #dbe8d4;
  border-radius: 16px;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  justify-content: center;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
}
.flow-node > .icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  color: #397427;
}
.flow-arrow {
  color: #41742f;
}
.direct-flow p {
  grid-column: 1 / -1;
  border-top: 1px solid #e0e9d9;
  padding-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
}
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-block: 44px;
}
.faq-intro .eyebrow {
  color: #587244;
}
.faq h2 {
  font-size: 1.875rem;
  letter-spacing: -.8px;
  margin-top: 10px;
}
.faq-intro > p:not(.eyebrow) {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 12px;
}
.faq-outro {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 10px;
  text-align: center;
}
.faq-outro > p {
  color: var(--muted);
}
.faq-outro .text-link {
  padding: 10px 16px;
  border: 1px solid var(--turquoise);
  border-radius: 999px;
  background: var(--turquoise-pale);
  text-decoration: none;
  font-size: .9375rem;
  max-width: 100%;
}
.faq-outro .text-link:hover {
  background: var(--white);
  text-decoration: none;
}
#faqItems {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background-color .18s ease, border-color .18s ease;
}
.faq details:hover, .faq details:has(> summary:focus-visible) {
  background: var(--lime-pale);
  border-color: var(--lime);
}
@media (prefers-reduced-motion: reduce) {
  .faq details { transition: none; }
}
.faq summary {
  position: relative;
  min-height: 56px;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 500;
  padding: 17px 42px 17px 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 15px;
  font-size: 1.25rem;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  padding: 0 16px 18px;
  font-size: .9375rem;
  color: var(--muted);
}
.faq-guide {
  margin: 0 16px 18px;
  max-width: calc(100% - 32px);
  min-height: 44px;
  background: var(--lime-pale);
  border: 1px solid #cddfbc;
  color: var(--forest);
  text-align: left;
  white-space: normal;
}
.faq-guide:hover { background: #e2f1d5; }
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: 28px 32px;
}
.footer-brand {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 12px;
}
.footer-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}
.footer-secondary a, .footer-secondary button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-inner .footer-copyright {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.footer-inner .brand img {
  width: 34px;
  height: 34px;
}
.footer-inner .wordmark {
  font-size: min(1.5rem, 14vw);
}
.footer-brand .brand {
  flex-wrap: wrap;
  max-width: 100%;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.footer-links a {
  font-weight: 500;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: .875rem;
  text-decoration: none;
}
.footer-inner p, .footer-note {
  font-size: .875rem;
  color: var(--muted);
}
/* Shared navigation indicator, separate from the text underline. */
:is(.main-nav :is(a, button), .footer-links a, .footer-secondary a, .footer-secondary button) {
  position: relative;
  text-decoration: none;
}
:is(.main-nav :is(a, button), .footer-links a, .footer-secondary a, .footer-secondary button)::after {
  content: '';
  position: absolute;
  left: var(--nav-line-inset, 0px);
  right: var(--nav-line-inset, 0px);
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--lime);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.main-nav :is(a, button) { --nav-line-inset: 14px; }
:is(.main-nav :is(a, button), .footer-links a, .footer-secondary a, .footer-secondary button):is(:hover, :focus-visible) {
  text-decoration: none;
}
:is(.main-nav :is(a, button), .footer-links a, .footer-secondary a, .footer-secondary button):is(:hover, :focus-visible)::after {
  transform: scaleX(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  :is(.main-nav :is(a, button), .footer-links a, .footer-secondary a, .footer-secondary button)::after {
    transition: none;
  }
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .9375rem;
  max-width: calc(100% - 32px);
  width: max-content;
  box-shadow: 0 6px 28px #183d3524;
  z-index: 20;
}
/* Enhance the single-column baseline only as space becomes available. */
@media (min-width: 380px) {
  .panel {
    padding: 24px 20px;
  }
  .design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading h2 {
    font-size: 1.125rem;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
}
@media (min-width: 600px) {
  .wrap {
    width: min(calc(100% - 48px), 1200px);
  }
  .panel {
    padding: 28px;
  }
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .draft-row {
    flex-wrap: nowrap;
  }
  .draft-row > span {
    flex: 1;
    min-width: 0;
  }
  .hero {
    padding-block: 44px 32px;
  }
  h1 {
    font-size: 3.25rem;
  }
  .control-banner {
    padding: 32px;
  }
  .direct-flow {
    max-width: 380px;
  }
  .footer-links {
    flex-basis: auto;
  }
}
@media (min-width: 768px) {
  .wrap {
    width: min(calc(100% - 64px), 1200px);
  }
  .hero {
    padding-block: 48px 38px;
  }
  .hero-description {
    font-size: 1.125rem;
  }
  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 24px;
  }
  .trust-card {
    flex-direction: column;
    padding: 22px;
  }
  .learn-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .learn-card summary {
    padding-inline: 18px;
  }
  .learn-body {
    padding-inline: 18px;
  }
  .control-banner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
  .faq {
    grid-template-columns: .8fr 1.2fr;
    gap: 40px;
    padding-block: 52px;
  }
}
@media (min-width: 960px) {
  .header-inner {
    min-height: 90px;
    flex-wrap: nowrap;
    gap: 24px;
  }
  .header-inner .brand {
    order: 0;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .wordmark {
    font-size: 2rem;
  }
  .main-nav, .main-nav.is-open {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    flex-basis: auto;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
  }
  .main-nav :is(a, button) {
    font-size: .9375rem;
  }
  .header-controls {
    order: 2;
  }
  .menu-toggle {
    display: none;
  }
  .hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 32px;
    align-items: center;
    padding-block: 48px 38px;
  }
  h1 {
    font-size: clamp(3rem, 4.5vw, 4.25rem);
    letter-spacing: -2.5px;
  }
  .hero-art-slot {
    display: block;
    min-width: 0;
  }
  .hero-art-fallback {
    display: grid;
    place-items: center;
    height: 300px;
    position: relative;
    isolation: isolate;
  }
  .art-orbit {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
  }
  .orbit-one {
    width: 260px;
    height: 260px;
    background: #e7f4d8;
    transform: translate(-12px, -5px);
  }
  .orbit-two {
    width: 130px;
    height: 130px;
    background: #dff5f1;
    transform: translate(98px, 70px);
  }
  .art-brand-card {
    width: 210px;
    height: 210px;
    display: grid;
    place-items: center;
    background: var(--white);
    border: 1px solid #dce8d5;
    border-radius: 26px;
    box-shadow: 0 12px 30px #183d350b;
  }
  .art-brand-card img {
    width: 184px;
    height: 184px;
    object-fit: contain;
  }
  .art-chip {
    position: absolute;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid #dce8d5;
    box-shadow: 0 6px 20px #183d3506;
  }
  .chip-link {
    left: 12px;
    top: 46px;
    color: #387624;
  }
  .chip-chat {
    right: 16px;
    bottom: 28px;
    color: #14665e;
  }
  .art-caption {
    color: var(--muted);
    font-size: .875rem;
    text-align: center;
  }
  .workspace {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 20px;
  }
  .panel {
    padding: 28px;
  }
  .section-heading h2 {
    font-size: 1.25rem;
  }
  .preview-heading h2 {
    font-size: 1.125rem;
  }
  .trust-card {
    flex-direction: row;
  }
}
@media (min-width: 1200px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding-block: 56px 44px;
  }
  .hero-content .eyebrow {
    margin-bottom: 18px;
  }
  .hero-description {
    max-width: 530px;
  }
  .hero-art-fallback {
    height: 330px;
  }
  .art-brand-card {
    width: 234px;
    height: 234px;
  }
  .art-brand-card img {
    width: 204px;
    height: 204px;
  }
  .orbit-one {
    width: 300px;
    height: 300px;
  }
  .chip-link {
    left: 28px;
  }
  .chip-chat {
    right: 28px;
  }
  .panel {
    padding: 32px;
  }
  .learn-section {
    display: grid;
    grid-template-columns: .85fr 1.6fr;
    align-items: start;
    gap: 32px;
    padding-block: 58px 36px;
  }
  .learn-cards {
    margin-top: 0;
  }
  .learn-intro h2 {
    font-size: 2rem;
  }
  .control-banner {
    padding: 36px;
    gap: 56px;
  }
}
/* Five main-menu options need the disclosure layout through tablet widths. */
@media (min-width: 960px) and (max-width: 1199px) {
  .header-inner { flex-wrap: wrap; gap: 0 24px; }
  .main-nav, .main-nav.is-open {
    order: 3;
    flex-basis: 100%;
    padding: 8px 0 16px;
    border-top: 1px solid var(--border);
  }
  .main-nav { display: none; }
  .main-nav.is-open { display: grid; }
  .menu-toggle { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}

.inspector-promo { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-block:28px; padding:20px; border:1px solid var(--border); border-radius:18px; background:var(--turquoise-pale); }
.inspector-promo h3 { font-size:1.125rem; margin-bottom:6px; }
.inspector-promo p { color:var(--muted); }
.inspector-promo .button { border-radius:999px; max-width:100%; white-space:normal; }

/* Six public navigation entries retain one row without reducing text size. */
@media (min-width:1200px) { .header-inner { gap:16px; } .main-nav,.main-nav.is-open { gap:4px; } .main-nav :is(a,button) { padding-inline:8px; } }

/* Compact inspector invitation in the opening section. */
.hero-inspector { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; padding:14px 16px; border:1px solid var(--border); border-radius:14px; background:var(--turquoise-pale); }
.hero-inspector > div { flex:1 1 220px; min-width:0; }
.hero-inspector h3 { font-size:1rem; line-height:1.4; margin-bottom:4px; }
.hero-inspector p { font-size:.875rem; line-height:1.55; color:var(--muted); }
.hero-inspector .button { min-height:44px; max-width:100%; padding:8px 14px; border-radius:999px; font-size:.9375rem; white-space:normal; }

/* Stage 1: compact optional design controls, mobile first. */
.type-letter { font-size:1.1rem; font-weight:600; min-width:24px; }
.qr-design-options { margin-top:24px; border-top:1px solid var(--border); padding-top:16px; }
.qr-design-options > summary { cursor:pointer; min-height:44px; font-weight:600; display:flex; align-items:center; }
.qr-design-options .qr-field { margin-top:20px; }
.qr-design-options .check-field { margin-top:20px; }
.generated-inspector { margin:24px 0; padding:16px; border:1px solid var(--border); border-radius:16px; background:var(--turquoise-pale); }
.generated-inspector .button { border-radius:999px; min-height:44px; }
.encoded output { white-space:pre-wrap; overflow-wrap:anywhere; }
#textCount { font-variant-numeric:tabular-nums; }

.generated-inspector .button { border-color:var(--border); background:var(--white); color:var(--forest); }
.generated-inspector .button:hover { border-color:var(--turquoise); box-shadow:0 0 0 2px #2ec4b622; }
.qr-design-options > summary { justify-content:space-between; gap:12px; }
.qr-design-options > summary::after { content:'+'; font-size:1.25rem; }
.qr-design-options[open] > summary::after { content:'−'; }
@media (max-width:359px) { #emailTab { flex-direction:column; padding-inline:4px; gap:4px; } }

/* Grid tracks adapt to larger user text without shrinking labels. */
.type-switch { grid-template-columns:repeat(auto-fit,minmax(min(100%,max(6.5rem,calc((100% - 8px)/2))),1fr)); }
.type-letter { white-space:nowrap; flex-shrink:0; }
.type-switch button { flex-wrap:wrap; }
.type-switch button > .icon { flex-shrink:0; }
@media (min-width:600px) { .type-switch { grid-template-columns:repeat(auto-fit,minmax(min(100%,max(6.5rem,calc((100% - 16px)/3))),1fr)); } }
.faq > * { min-width:0; }
.faq-guide { max-width:100%; }
.faq-guide > span { min-width:0; overflow-wrap:anywhere; }
.faq-outro { grid-template-columns:minmax(0,1fr); } .faq-outro > * { min-width:0; } .faq-outro .text-link > span { min-width:0; overflow-wrap:anywhere; }

/* Contextual Inspector access: visible before reading the full guide. */
.inspector-cta {
  display:grid;
  gap:14px;
  padding:18px;
  margin-block:24px;
  border:1px solid var(--turquoise);
  border-radius:16px;
  background:var(--turquoise-pale);
  min-width:0;
}
.inspector-cta p, .faq details .inspector-cta p { margin:0; padding:0; color:var(--forest); font-size:1rem; }
.inspector-cta .inspector-cta-link { border-radius:999px; min-height:48px; white-space:normal; max-width:100%; }
.inspector-cta-link > span { min-width:0; overflow-wrap:anywhere; }
.faq details .inspector-cta { margin:0 16px 18px; }
@media (min-width:600px) { .inspector-cta-link { justify-self:start; } }

/* Internal editorial links share a touch-friendly pill, independent of nav menus. */
.doc-link-pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  max-width:100%;
  min-height:44px;
  padding:10px 16px;
  margin-block:6px;
  border-radius:999px;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:left;
  text-decoration:none;
  vertical-align:middle;
}
.doc-link-pill:not(.button) { border:1px solid var(--border); background:var(--white); color:var(--forest); font-weight:600; }
.doc-link-pill:hover, .doc-link-pill:focus-visible { text-decoration:none; border-color:var(--turquoise); box-shadow:0 0 0 2px #2ec4b622; }
.doc-link-pill > span { min-width:0; overflow-wrap:anywhere; }
.doc-link-pill > .icon { flex-shrink:0; }
/* Local visual editor: one SVG state, with a section-scoped mobile preview. */
.compact-preview, .color-editor-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.compact-preview {
  position: sticky;
  top: 8px;
  z-index: 3;
  margin: 0 0 24px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 5px 20px #183d3510;
}
.compact-qr {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
}
.compact-qr svg { display: block; width: 100%; height: 100%; }
.preview-state { display: block; font-size: .9375rem; font-weight: 600; margin: 12px 0 0; }
.compact-preview .preview-state, .color-editor-preview .preview-state { margin: 0; }
.compact-preview .hint, .color-editor-preview .hint { font-size: .875rem; line-height: 1.5; margin: 6px 0 0; }
.preview-guidance { margin-block: 12px; }
.color-editor {
  position: fixed;
  inset: auto 8px var(--editor-bottom, 0px);
  z-index: 30;
  margin: 0 auto;
  width: min(100% - 16px, 520px);
  max-height: calc(var(--editor-viewport-height, 100dvh) - 16px);
  padding: 16px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px #10251e30;
  color: var(--forest);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.color-editor-heading { flex-shrink: 0; }
.color-editor-preview { flex-shrink: 0; margin-block: 12px; }
.color-editor-body { overflow: auto; min-height: 0; overscroll-behavior: contain; padding: 4px; }
.color-editor .color-channels { grid-template-columns: minmax(0, 1fr); }
.color-editor .color-channel { grid-template-columns: 36px minmax(0, 1fr); }
.color-editor .color-channel-range { grid-column: 2; }
#qrForm [aria-invalid=true] { outline: 2px solid var(--coral, #c63e36); outline-offset: 3px; }
#qrForm input, #qrForm textarea, #qrForm select { scroll-margin-block: 40px; }
@media (max-height: 540px) {
  .color-editor-preview .compact-qr { flex-basis: 80px; width: 80px; height: 80px; }
  .color-editor-preview .preview-guidance { display: none; }
  .color-editor-preview { margin-block: 4px; }
}
@media (min-width: 960px) {
  .compact-preview { display: none; }
  .preview.panel {
    position: sticky;
    top: 16px;
  }
  .preview .qr-stage { width: min(220px, 100%); margin-block: 12px; }
  .color-editor {
    inset: auto;
    margin: 0;
    width: 340px;
    border-radius: 16px;
    box-shadow: 0 8px 40px #10251e30;
  }
  .color-editor-preview { display: none; }
}
@media (max-width: 359px) {
  .compact-preview .preview-guidance { display: none; }
}
@media (min-width: 960px) and (max-height: 720px) {
  .preview.panel { padding: 20px; }
  .preview .qr-stage { width: clamp(104px, calc(100dvh - 400px), 180px); margin-block: 8px; }
  .preview .preview-guidance { margin-block: 8px; }
  .preview .quality { margin-block: 8px; }
}
/* The visual viewport can shrink without a layout-viewport media query changing. */
.color-editor[data-viewport-size=compact] .color-editor-preview .compact-qr {
  flex-basis: 80px;
  width: 80px;
  height: 80px;
}
.color-editor[data-viewport-size=compact] .preview-guidance { display: none; }
.color-editor[data-viewport-size=compact] .color-editor-preview { margin-block: 4px; }
.color-editor[data-viewport-size=tiny] .color-editor-preview { display: none; }

/* The QR card alone sticks; supporting content uses normal document scroll. */
.preview-column { min-width: 0; }
.preview-supplement { display: grid; gap: 20px; min-width: 0; }
.preview-supplement .encoded, .preview-supplement .independence, .preview-supplement .generated-inspector { margin: 0; }
.preview-supplement > * { min-width: 0; }
@media (min-width: 960px) {
  .workspace > .editor { grid-column: 1; grid-row: 1; }
  .preview-column { grid-column: 2; grid-row: 1; align-self: stretch; }
  .preview-supplement { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .preview-supplement .encoded { grid-column: 1; grid-row: 1 / span 3; }
  .preview-supplement .generated-inspector, .preview-supplement .independence { grid-column: 2; }
  .preview-supplement #wifiScanHint { grid-column: 1; }
}

/* Location: manual map selection, progressive provider loading and keyboard fallback. */
#locationFields > h3 { margin-top: 0; }
.location-map { height: 280px; width: 100%; position: relative; z-index: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); isolation: isolate; }
.location-map:focus-visible, .location-map[aria-invalid=true] { outline: 3px solid var(--lime); outline-offset: 3px; }
.location-map-field > .error:not(:empty) {
  padding: 12px 16px;
  margin-block: 12px;
  border: 1px solid var(--honey);
  border-radius: 12px;
  background: var(--honey-pale);
  color: var(--forest);
  scroll-margin-block-start: 100px;
}
.location-map .leaflet-control-attribution { font: 12px/1.4 Inter, sans-serif; max-width: 100%; }
.location-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; color: #183d35; }
.location-map .leaflet-container { font-family: Inter, sans-serif; }
.location-pin { background: none; border: none; padding: 12px 8px 0; }
.location-pin span { display: block; width: 28px; height: 28px; border: 3px solid white; border-radius: 50% 50% 50% 0; background: #183d35; box-shadow: 0 2px 6px #0008; transform: rotate(-45deg); }
.location-actions, .location-search-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.location-actions button { border: 1px solid var(--border); border-radius: 999px; min-height: 44px; padding: 8px 14px; background: var(--turquoise-pale); color: var(--forest); }
.location-actions button[aria-pressed=true] { background: var(--forest); color: var(--white); }
.location-search-row input { flex: 1 1 180px; min-width: 0; }
.location-search-row button { flex: 0 1 auto; }
.location-coordinates { display: block; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.location-advanced { margin-block: 20px 24px; padding-block: 12px; }
.location-advanced .qr-field:first-of-type { margin-top: 20px; }
.location-results { padding: 0; list-style: none; }
.location-results button { width: 100%; text-align: start; padding: 10px; min-height: 44px; overflow-wrap: anywhere; }
@media (pointer: coarse), (max-width: 767px) {
  #locationMap.leaflet-container { touch-action: pan-y; }
  #locationMap.location-map-moving.leaflet-container { touch-action: none; }
}
@media (min-width: 768px) { .location-map { height: 320px; } }

.location-views { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px 0; }
.location-views[hidden] { display: none; }
.location-view { flex: 1 1 100px; min-height: 44px; border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; background: var(--white); color: var(--forest); font: 600 1rem/1.4 Inter, sans-serif; cursor: pointer; }
.location-view:hover { border-color: var(--lime); background: var(--lime-pale); }
.location-view[aria-pressed=true] { background: var(--forest); color: var(--white); border-color: var(--forest); }
.location-view:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
#locationViewHint { margin: 8px 0 12px; }
