/* =========================================================
   Permanent QR — static QR generator
   All styles local. No web fonts, no CDN.
   ========================================================= */

:root {
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --paper: #F8FAFC;
  --surface: #FFFFFF;
  --surface-soft: #F1F5F9;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --green: #2563EB;
  --green-dark: #1D4ED8;
  --green-deep: #1E293B;
  --green-soft: #DBEAFE;
  --lime: #38BDF8;
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --danger: #DC2626;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(20, 23, 19, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}

main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
}

.brand-name { white-space: nowrap; }
.brand-accent { color: var(--green); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--line-strong); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge-soft { background: var(--green-soft); border-color: #BFDBFE; color: var(--green-dark); }
.badge-license {
  background: var(--green-soft);
  border-color: #93C5FD;
  color: var(--green-dark);
}

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

.hero {
  padding-top: 64px;
  padding-bottom: 40px;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 107, 74, 0.14);
}
.eyebrow-plain {
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 10px;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.73rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  max-width: 20ch;
}

.hero-lead {
  margin: 0 0 24px;
  max-width: 66ch;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.hero-lead strong {
  color: var(--ink);
  font-weight: 650;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.91rem;
  color: var(--ink-soft);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points svg {
  width: 18px; height: 18px;
  color: var(--green);
  flex: none;
}

/* ---------- Studio area ---------- */

.studio { padding-bottom: 26px; }

#studio, #pricing, #faq { scroll-margin-top: 84px; }

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.controls { overflow: hidden; }

.field {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}
.field:first-child { border-top: 0; }
.field-last { padding-bottom: 26px; }

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.field-label {
  font-size: 0.93rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.char-count {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.char-count.is-over { color: var(--danger); font-weight: 600; }

.hint-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hint-pill-paid {
  background: #f0ecdf;
  color: #6b5a20;
}

textarea,
.text-input,
select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

textarea:focus,
.text-input:focus,
select:focus,
.hex-input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 107, 74, 0.14);
}

textarea::placeholder,
.text-input::placeholder { color: #9aa096; }

.field-help {
  margin: 9px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.field-error {
  margin: 9px 0 0;
  padding: 9px 12px;
  border: 1px solid #ecc7c2;
  border-radius: 8px;
  background: #fbeeec;
  color: var(--danger);
  font-size: 0.84rem;
  line-height: 1.4;
}

.field-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.81rem;
  line-height: 1.4;
}
.field-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.field-note-warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.examples-label {
  font-size: 0.78rem;
  color: var(--muted);
}
.chip-btn {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 550;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip-btn:hover {
  background: var(--green-soft);
  border-color: #BFDBFE;
  color: var(--green-dark);
}

/* Segmented control */

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}
.seg-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.seg-btn:hover { background: var(--surface-soft); }
.seg-btn[aria-pressed="true"] {
  background: var(--surface);
  border-color: #BFDBFE;
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
}
.seg-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.seg-btn:disabled:hover { background: transparent; }

/* Colours */

.locked-block { position: relative; }

.presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preset {
  display: flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 550;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.preset:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.preset[aria-pressed="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(20, 107, 74, 0.12);
}
.swatches {
  display: inline-flex;
  flex: none;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(20, 23, 19, 0.14);
}
.swatches span {
  display: block;
  width: 12px;
  height: 18px;
}
.preset-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.colour-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.colour-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}
.colour-role {
  font-size: 0.78rem;
  color: var(--ink-soft);
  flex: 1;
  white-space: nowrap;
}
input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  flex: none;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 4px; }

.hex-input {
  width: 78px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  flex: none;
}

/* Locked pack sections */

.lock-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
}
.lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
}
.lock-icon svg { width: 17px; height: 17px; }
.lock-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lock-banner-text strong {
  font-size: 0.84rem;
  font-weight: 650;
}
.lock-banner-text span {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
}
.lock-banner .btn { flex: none; }

.locked-body { transition: opacity 0.15s ease; }
body:not(.is-licensed) .locked-body { opacity: 0.42; }

/* Logo */

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.upload-label { cursor: pointer; }

.logo-current {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.logo-current img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
  flex: none;
}
.logo-current-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.logo-current-name {
  font-size: 0.83rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logo-current-meta {
  font-size: 0.74rem;
  color: var(--muted);
}

/* Export */

.export-grid { margin-bottom: 12px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.7px solid var(--ink-soft);
  border-bottom: 1.7px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled {
  background: #dcd9cf;
  color: #8a8f85;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { background: var(--surface-soft); border-color: #b9b4a4; }
.btn-outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-light {
  background: #fff;
  color: var(--green-deep);
}
.btn-light:hover { background: var(--lime); color: var(--green-deep); }

.btn-plain {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
}
.btn-plain:hover { background: rgba(20, 23, 19, 0.05); color: var(--ink); }

.btn-sm {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 0.83rem;
  border-radius: 8px;
}
.btn-sm svg { width: 16px; height: 16px; }

.btn-block { width: 100%; }

.btn-lock {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.btn-lock svg { width: 13px; height: 13px; }
body.is-licensed .hint-pill-paid { display: none; }
body.is-licensed .btn-lock { display: none; }

.link-btn {
  font: inherit;
  font-size: 0.82rem;
  color: var(--green-dark);
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }

/* ---------- Preview ---------- */

.preview {
  position: sticky;
  top: 90px;
  padding: 18px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.preview-title {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 650;
}
.badges { display: flex; gap: 6px; }

.qr-stage {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(45deg, #f2f0e9 25%, transparent 25%, transparent 75%, #f2f0e9 75%),
    linear-gradient(45deg, #f2f0e9 25%, transparent 25%, transparent 75%, #f2f0e9 75%),
    #fbfaf6;
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}

.qr-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 23, 19, 0.08);
}

#qrCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.empty-state {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
}
.empty-state svg {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  color: #b3b8ae;
}
.empty-title {
  margin: 0 0 5px;
  font-size: 0.96rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.empty-text {
  margin: 0;
  font-size: 0.81rem;
  max-width: 26ch;
  line-height: 1.45;
}
.empty-state.is-error { border-color: #e0b8b3; }
.empty-state.is-error svg { color: #c98d86; }
.empty-state.is-error .empty-title { color: var(--danger); }

.preview-meta {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.target-line {
  margin: 0 0 4px;
  font-size: 0.79rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.target-label {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a9086;
}
.target-text {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
.meta-line {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.preview-tip {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 13px 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}
.preview-tip svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

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

.section-head {
  max-width: 62ch;
  margin-bottom: 30px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 12px;
}
.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Pricing */

.pricing { padding-top: 58px; padding-bottom: 30px; }

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
}

.price-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #F8FAFC;
  box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.9);
}
.price-card-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(200, 230, 160, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.5;
}
.price-card > * { position: relative; z-index: 1; }

.price-flag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.price-name {
  margin: 0 0 4px;
  font-size: 1.03rem;
  font-weight: 600;
}

.price-amount {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-currency {
  font-size: 1.4rem;
  vertical-align: 0.55em;
  margin-right: 2px;
}
.price-caption {
  margin: 6px 0 18px;
  font-size: 0.81rem;
  color: var(--muted);
}
.price-card-featured .price-caption { color: #b7c9bb; }

.price-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.87rem;
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.4;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 13px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.price-card-featured .price-list li::before { border-color: var(--lime); }

.price-fineprint {
  margin: 10px 0 0;
  font-size: 0.71rem;
  color: #a9bdb0;
  text-align: center;
}

/* FAQ */

.faq { padding-top: 50px; padding-bottom: 40px; max-width: 900px; }

.faq-list {
  border-top: 1px solid var(--line-strong);
  margin-top: 8px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 36px 17px 2px;
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.7px solid var(--ink-soft);
  border-bottom: 1.7px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item summary:hover { color: var(--green-dark); }
.faq-item p {
  margin: 0;
  padding: 0 40px 18px 2px;
  color: var(--ink-soft);
  font-size: 0.89rem;
  max-width: 78ch;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 30px;
  padding-top: 40px;
  background: var(--green-deep);
  color: #d9e2d8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.3fr;
  gap: 34px;
  padding-bottom: 34px;
}

.brand-footer { color: #f6f4ee; }
.brand-footer .brand-accent { color: var(--lime); }
.brand-footer .brand-mark { width: 32px; height: 32px; }

.footer-blurb {
  margin: 14px 0 0;
  max-width: 38ch;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #adc0b2;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-title {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8fa596;
}
.footer-col a {
  color: #e4ebe1;
  text-decoration: none;
  font-size: 0.86rem;
}
.footer-col a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

.footer-license {
  margin: 0;
  font-size: 0.83rem;
  color: #adc0b2;
  line-height: 1.5;
}
.footer-license strong { color: #f6f4ee; }
.site-footer .link-btn { color: var(--lime); font-size: 0.8rem; }
.site-footer .link-btn:hover { color: #fff; }
.footer-note {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: #8fa596;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(246, 244, 238, 0.14);
  font-size: 0.75rem;
  color: #8fa596;
}

/* ---------- Modal ---------- */

.modal {
  width: min(540px, calc(100vw - 24px));
  max-height: min(90vh, 760px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(10, 20, 14, 0.55);
  overflow-y: auto;
}
.modal::backdrop {
  background: rgba(11, 21, 15, 0.58);
  backdrop-filter: blur(3px);
}
.modal[open] { animation: modal-in 0.18s ease-out; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}
.modal-close:hover { background: var(--surface-soft); color: var(--ink); }
.modal-close svg { width: 14px; height: 14px; }

.modal-step { padding-top: 4px; }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 10px;
  max-width: 18ch;
}

.modal-reason {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.modal-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  display: grid;
  gap: 9px;
  font-size: 0.87rem;
}
.modal-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.4;
}
.modal-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.modal-actions { display: grid; gap: 4px; }

.modal-fineprint {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.modal-copy {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.order-summary {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  font-size: 0.86rem;
}
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}
.order-row-muted { color: var(--muted); }
.order-row-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

#checkoutForm .field-label {
  display: block;
  margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--muted); }

.check-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 14px 0 16px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-row input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex: none;
}

.success-mark {
  width: 52px;
  height: 52px;
  margin: 4px 0 14px;
}
.success-mark svg { width: 100%; height: 100%; }

.license-box {
  margin: 4px 0 20px;
  padding: 14px;
  border: 1px dashed #b9d3c0;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  text-align: center;
}
.license-box-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 5px;
}
.license-box code {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  word-break: break-all;
  margin-bottom: 5px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #f6f4ee;
  font-size: 0.84rem;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.noscript {
  margin: 24px;
  padding: 16px;
  border: 1px solid #e0c9a8;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
  }
  .preview { padding: 15px; }
}

@media (max-width: 920px) {
  .studio-grid { grid-template-columns: 1fr; }
  .preview {
    position: static;
    order: -1;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
  .hero { padding-top: 44px; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Comfortable touch targets for phones and tablets */
  .chip-btn,
  .preset,
  .seg-btn,
  .btn-sm,
  .link-btn {
    min-height: 44px;
  }
  .chip-btn { padding: 10px 14px; }
  .preset { padding: 10px 12px; }
  .seg-btn { padding: 11px 4px; }
  .link-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
  }
  .hex-input {
    width: 96px;
    height: 40px;
    font-size: 0.82rem;
  }
  input[type="color"] {
    width: 40px;
    height: 40px;
  }
  .modal-close {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }

  .header-inner { min-height: 60px; }
  .header-nav { gap: 12px; }
  .header-nav .nav-link { display: none; }
  .badge-license { font-size: 0.7rem; padding: 4px 8px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 30px; height: 30px; }

  .hero { padding-top: 34px; padding-bottom: 28px; }
  .hero h1 { max-width: none; }
  .hero-lead { font-size: 0.98rem; }
  .eyebrow { font-size: 0.72rem; padding: 5px 12px 5px 9px; }

  .field { padding: 18px 16px; }
  .field-last { padding-bottom: 22px; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .colour-rows { grid-template-columns: 1fr; }
  .download-row .btn { flex: 1 1 100%; }
  .logo-row .btn { flex: 1 1 auto; }
  .preview { padding: 12px; }
  .qr-stage { padding: 12px; }

  .price-card { padding: 22px; }
  .price-amount { font-size: 2.7rem; }

  .site-footer { padding-top: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal { padding: 24px 20px; }
  .faq-item p { padding-right: 12px; }

  .hex-input { width: 96px; }
}

/* Touch devices wider than the mobile breakpoint (tablets) */
@media (pointer: coarse) {
  .chip-btn,
  .preset,
  .seg-btn,
  .btn-sm,
  .link-btn {
    min-height: 44px;
  }
  input[type="color"] {
    width: 40px;
    height: 40px;
  }
  .hex-input { height: 40px; }
  .modal-close {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 380px) {
  .preset { font-size: 0.7rem; }
  .colour-role { font-size: 0.72rem; }
  .hex-input { width: 68px; }
}

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

@media print {
  .site-header, .hero, .controls, .pricing, .faq, .site-footer, .modal, .toast { display: none !important; }
  body { background: #fff; }
  .preview { position: static; border: 0; box-shadow: none; }
}
.preview { box-shadow: var(--shadow-md); }
