/* Plus Jakarta Sans (SIL OFL), self-hosted so the site makes no
   third-party font requests — headings only; body text stays on the
   system stack for speed. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette drawn from Pantone's 2027 colors. Dragon Fire (#fc642d) is the
     brand hue, deepened for fills so white text on it passes WCAG AA. */
  --pantone-anise: #f3e1b4;
  --pantone-princess-blue: #00539c;
  --pantone-waterfall: #3ab0a2;
  --pantone-chili: #9b1b30;
  --pantone-rosy: #f27e9c;
  --pantone-dragon-fire: #fc642d;
  --pantone-hibiscus: #dd3848;
  --pantone-lavender: #c3a8d1;

  --brand: #d2441a;
  --brand-dark: #b23714;
  --brand-soft: #fff0e8;
  --brand-ink: #9a2f10;
  --on-brand: #ffffff;
  --accent: #2a9d8f;
  --ink: #1c1410;
  --ink-soft: #57524c;
  --ink-faint: #a29a90;
  --border: #ece5da;
  --border-strong: #d9d0c3;
  --bg: #fffdf9;
  --bg-alt: #fbf6ec;
  --panel: #ffffff;
  --field: #ffffff;
  --segment-on: #ffffff;
  --danger: #c0262d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 20, 16, 0.05), 0 12px 32px -8px rgba(28, 20, 16, 0.1);
  --shadow-lg: 0 2px 4px rgba(28, 20, 16, 0.04), 0 24px 48px -12px rgba(210, 68, 26, 0.2);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 60px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Raw Dragon Fire reads well on dark, but white text on it doesn't —
       so filled brand elements switch to dark text. */
    --brand: #fc642d;
    --brand-dark: #ff7d4d;
    --brand-soft: #3a1d12;
    --brand-ink: #ffb393;
    --on-brand: #1c1410;
    --accent: #3ab0a2;
    --ink: #f6efe6;
    --ink-soft: #b3aa9f;
    --ink-faint: #7a7168;
    --border: #2e2722;
    --border-strong: #423931;
    --bg: #14100e;
    --bg-alt: #1a1512;
    --panel: #1f1916;
    --field: #14100e;
    --segment-on: #352c26;
    --danger: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
}

/* Elements with both the `hidden` attribute and an author display rule (e.g.
   .preview-actions{display:flex}, .field-row{display:grid}) would otherwise
   stay visible, since author styles override the UA stylesheet's [hidden]. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  flex-shrink: 0;
}

a {
  color: var(--brand);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--on-brand);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Visually hidden but still reachable by screen readers/AT — for content
   that needs to be announced without a visible on-page presence. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}
@media (max-width: 560px) {
  .site-nav a {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  .site-nav a:first-child {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 36px;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  /* Soft brand glow plus a faint module grid — a nod to QR modules. */
  content: "";
  position: absolute;
  inset: 0 0 -280px;
  z-index: -1;
  background:
    radial-gradient(ellipse 35% 45% at 30% 0%, color-mix(in srgb, var(--pantone-rosy) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 35% 45% at 70% 0%, color-mix(in srgb, var(--pantone-lavender) 34%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 55% at 50% 0%, color-mix(in srgb, var(--pantone-anise) 45%, transparent), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.9;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 16px;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-accent {
  background: linear-gradient(100deg, var(--pantone-chili) 0%, var(--pantone-hibiscus) 45%, var(--pantone-dragon-fire) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  /* Chili Pepper vanishes on the dark background — lead with Rosy Future. */
  .hero-accent {
    background-image: linear-gradient(100deg, var(--pantone-rosy) 0%, var(--pantone-hibiscus) 45%, var(--pantone-dragon-fire) 100%);
  }
  .hero::before {
    opacity: 0.45;
  }
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.1rem;
  text-wrap: pretty;
}
.trust-pills {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-pills li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tool layout — three panels. Desktop: input + customize stacked on the
   left, preview sticky on the right. Mobile: input, then preview, then
   customize, so the code is visible right after typing a URL. */
.tool {
  padding: 8px 0 72px;
}
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  grid-template-areas:
    "content preview"
    "customize preview";
  grid-template-rows: auto 1fr;
  gap: 20px;
  align-items: start;
}
.content-panel {
  grid-area: content;
}
.customize-panel {
  grid-area: customize;
}
.preview-panel {
  grid-area: preview;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
@media (max-width: 860px) {
  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "content"
      "preview"
      "customize";
  }
  .preview-panel {
    position: static;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
@media (max-width: 560px) {
  .panel {
    padding: 18px;
  }
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.field {
  margin-bottom: 18px;
}
.field:last-child {
  margin-bottom: 0;
}
.field label,
.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  padding: 0;
}
.field-optional {
  font-weight: 400;
  color: var(--ink-faint);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 420px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--field);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
textarea {
  resize: vertical;
}
input[type="text"]:hover,
select:hover,
textarea:hover {
  border-color: var(--ink-faint);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.input-lg {
  padding: 14px 16px !important;
  font-size: 1.1rem !important;
  border-radius: 12px !important;
}
/* Chrome/Safari force a yellow/blue autofill background that ignores
   normal background-color rules — this delay trick is the standard way
   to make it respect the site's own background instead. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  transition: background-color 600000s 0s, color 600000s 0s;
}

.field-hint {
  min-height: 1.1em;
  font-size: 0.84rem;
  color: var(--danger);
  margin: 8px 0 0;
}
.field-hint:empty {
  min-height: 0;
  margin: 0;
}
.field-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 8px 0 0;
}
.field-note code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 18px;
  cursor: pointer;
}
.checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

/* Segmented control — used for mode (buttons) and format (radio labels) */
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.segment {
  flex: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 9px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.segment:hover {
  color: var(--ink);
}
.segment[aria-pressed="true"],
.segment:has(input:checked) {
  background: var(--segment-on);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(28, 20, 16, 0.12);
}
.segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segment:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.mode-tabs {
  margin-bottom: 18px;
}

/* Data type chips */
.type-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .type-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}
.chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ink);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.chip:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Preview */
.preview-panel {
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
#qr-canvas {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(28, 20, 16, 0.1), 0 8px 20px -6px rgba(28, 20, 16, 0.15);
}
@media (max-width: 860px) {
  #qr-canvas {
    max-width: 280px;
  }
}

.download-options {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.format-toggle {
  flex: 1;
}
.size-field select {
  height: 100%;
  min-width: 108px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 1px 2px rgba(28, 20, 16, 0.1), 0 6px 16px -4px color-mix(in srgb, var(--brand) 50%, transparent);
}
.btn-primary:hover {
  background: var(--brand-dark);
}
.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.btn-lg {
  padding: 14px 22px;
  font-size: 1.02rem;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}
.btn-small {
  padding: 6px 14px;
  font-size: 0.82rem;
  margin-top: 10px;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 0.83rem;
  color: var(--ink-soft);
}
.privacy-note svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Customize panel */
.customize-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.customize-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs [role="tab"] {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.tabs [role="tab"]:hover {
  color: var(--ink);
  background: var(--bg-alt);
}
.tabs [role="tab"][aria-selected="true"] {
  color: var(--brand-ink);
  background: var(--brand-soft);
}
@media (max-width: 560px) {
  .customize-head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Color presets + pickers */
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  position: relative;
  transition: transform 0.12s;
}
.swatch::after {
  /* inner dot shows the foreground color on the swatch's background */
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--swatch-fg);
}
.swatch:hover {
  transform: scale(1.08);
}
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--brand);
}

.color-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--field);
}
.color-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.color-field input[type="color"] {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-field input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(28, 20, 16, 0.15);
  border-radius: 7px;
}
.color-field input[type="color"]::-moz-color-swatch {
  border: 1px solid rgba(28, 20, 16, 0.15);
  border-radius: 7px;
}
.color-field output {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 2px 0 18px;
  cursor: pointer;
  position: relative;
}
.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  transition: background 0.15s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.switch-field input:checked + .switch {
  background: var(--brand);
}
.switch-field input:checked + .switch::after {
  transform: translateX(16px);
}
.switch-field input:focus-visible + .switch {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
#gradient-fields {
  margin-bottom: 0;
}

/* Shape option cards */
.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.option-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 10px;
  margin: 0 !important;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 0.84rem !important;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.option-card:hover {
  border-color: var(--ink-faint);
}
.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-card svg {
  width: 36px;
  height: 36px;
  fill: var(--ink);
}
.option-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ink);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.option-card:has(input:checked) svg {
  fill: var(--brand);
}
.option-card:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Logo dropzone */
.dropzone {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  padding: 24px 16px;
  margin: 0 !important;
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--bg-alt);
  text-align: center;
  font-weight: 400 !important;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.dropzone:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.dropzone svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dropzone strong {
  color: var(--ink);
}
.dropzone u {
  color: var(--brand);
  text-underline-offset: 2px;
}
#logo-preview {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px;
}

/* Section headings */
.how-it-works h2,
.features h2,
.faq h2,
.examples h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin: 0 0 12px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

/* Example gallery */
.examples {
  padding: 24px 0 72px;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .example-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .example-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.example-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.example-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.example-card canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(28, 20, 16, 0.06);
}

/* How it works */
.how-it-works {
  padding: 72px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-it-works h2 {
  margin-bottom: 40px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: none;
  position: relative;
}
.steps::before {
  /* connector line through the step numbers */
  content: "";
  position: absolute;
  top: 22px;
  left: 16.6%;
  right: 16.6%;
  border-top: 2px dashed var(--border-strong);
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps::before {
    display: none;
  }
}
.steps li {
  text-align: center;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
  box-shadow: 0 0 0 6px var(--bg-alt), 0 6px 16px -4px color-mix(in srgb, var(--brand) 60%, transparent);
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.steps p {
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 300px;
}

/* Features */
.features {
  padding: 80px 0;
}
.features h2 {
  margin-bottom: 40px;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}
.highlight-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}
.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  margin-bottom: 16px;
}
.highlight-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.highlight-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.highlight-card p {
  margin: 0;
  color: var(--ink-soft);
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
@media (max-width: 860px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}
.feature-list li {
  position: relative;
  padding-left: 32px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--accent);
}
.feature-list h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.feature-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  padding: 72px 0 88px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.faq h2 {
  margin-bottom: 32px;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-list details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--ink-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--brand);
}
.faq-list summary:hover {
  color: var(--brand);
}
.faq-list p {
  color: var(--ink-soft);
  margin: 0;
  padding: 0 20px 18px;
}

/* Footer */
.site-footer {
  padding: 40px 0 36px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.site-footer p {
  margin: 0;
}
.site-footer p a {
  color: var(--ink-soft);
  text-decoration: underline;
}
.site-footer p a:hover {
  color: var(--brand);
}

/* Guide pages (WiFi/vCard/menu/batch landing pages) */
.guide-hero {
  padding: 56px 0 16px;
}
.guide-content {
  padding: 8px 0 24px;
}
.guide-content .wrap {
  max-width: 760px;
}
.guide-content h2 {
  font-size: 1.5rem;
  margin: 36px 0 12px;
}
.guide-content p,
.guide-content li {
  color: var(--ink-soft);
}
.guide-content li {
  margin-bottom: 4px;
}
.guide-content ol,
.guide-content ul {
  padding-left: 22px;
}
.guide-cta {
  text-align: center;
  padding: 24px 0 40px;
}
.guide-cta .btn {
  padding: 14px 24px;
  font-size: 1.02rem;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
