/* ==========================================================================
   IIQR Codes — QR Codes by Innovorx Infinite
   Monochrome brand, Michroma wordmark, gold "Best Value" accent.
   Theme: html[data-theme="light"|"dark"] (set before paint by inline script).
   ========================================================================== */

/* Self-hosted fonts (latin subset, OFL). font-display: swap = text shows immediately in the fallback font. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Michroma"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/michroma-latin.woff2") format("woff2"); }

:root {
  --wordmark: #550c0f; --wordmark-sub: #4a4636;   /* IIQR lockup (Innovorx maroon + olive) */
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --surface: #ffffff;
  --text: #0b0b0c;
  --text-muted: #55565b;
  --border: #e4e4e7;
  --border-strong: #0b0b0c;
  --ink: #0b0b0c;          /* primary button background */
  --ink-text: #ffffff;     /* primary button text */
  --gold: #d4a017;
  --gold-soft: #fbf3dc;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.05), 0 20px 48px rgba(0,0,0,.12);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --indigo: #4f46e5; --teal: #0d9488; --orange: #ea580c; --red: #dc2626;
  --emerald: #059669; --magenta: #c026d3; --blue: #2563eb; --slate: #334155;
  --grad: linear-gradient(100deg, #4f46e5 0%, #c026d3 45%, #ea580c 100%);
  /* "ink" = the same hue darkened for TEXT on light backgrounds (WCAG AA ≥ 4.5:1); accents stay bright for fills */
  --indigo-ink: #4338ca; --teal-ink: #0f766e; --orange-ink: #c2410c; --red-ink: #b91c1c; --emerald-ink: #047857;
  --magenta-ink: #a21caf; --blue-ink: #1d4ed8; --slate-ink: #334155; --gold-ink: #a16207;
  --grad-ink: linear-gradient(100deg, #4338ca 0%, #a21caf 50%, #c2410c 100%);
  --font-display: "Michroma", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --wordmark: #fbfaf8; --wordmark-sub: #d5f1fc;
  --bg: #0b0b0c;
  --bg-soft: #141416;
  --surface: #161618;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --border: #2a2a2e;
  --border-strong: #f4f4f5;
  --ink: #ffffff;
  --ink-text: #0b0b0c;
  --gold: #e9c46a;
  --gold-soft: #2a2414;
  --indigo: #818cf8; --teal: #2dd4bf; --orange: #fb923c; --red: #f87171;
  --emerald: #34d399; --magenta: #e879f9; --blue: #60a5fa; --slate: #94a3b8;
  --grad: linear-gradient(100deg, #818cf8 0%, #e879f9 45%, #fb923c 100%);
  --indigo-ink: #818cf8; --teal-ink: #2dd4bf; --orange-ink: #fb923c; --red-ink: #f87171; --emerald-ink: #34d399;
  --magenta-ink: #e879f9; --blue-ink: #60a5fa; --slate-ink: #94a3b8; --gold-ink: #e9c46a;
  --grad-ink: var(--grad);
  --focus: #60a5fa;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 20px 48px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.michroma { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; }
.muted { color: var(--text-muted); }
.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: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--ink-text); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.125rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.25rem; border-radius: 999px;
  font: 600 .975rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn--primary { background: var(--ink); color: var(--ink-text); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--lg { min-height: 52px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand__logo { width: 52px; height: 52px; flex: none; }
.brand__logo .logo-dark { display: none; }
:root[data-theme="dark"] .brand__logo .logo-light { display: none; }
:root[data-theme="dark"] .brand__logo .logo-dark { display: block; }
/* "BY INNOVORX INFINITE" spans exactly the width of "QR CODES": 40% size + .194em tracking (measured in Michroma) */
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-display); font-size: 1.32rem; }
.brand__name { font-size: 1em; letter-spacing: .07em; color: var(--wordmark); }
.brand__by { font-size: .4em; letter-spacing: .194em; color: var(--wordmark-sub); margin-top: 5px; white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: .45rem .9rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: var(--text);
  transition: background-color .2s ease, color .2s ease;
}
.nav__links a:hover { background: var(--bg-soft); }
.nav__links a[aria-current="page"] { background: var(--ink); color: var(--ink-text); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--border-strong); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .menu-toggle { display: inline-grid; }
  .nav__cta { display: none; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: .75rem 1.25rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav__links .nav__mobile-cta { display: block; margin-top: .5rem; }
}
.nav__mobile-cta { display: none; }
@media (max-width: 420px) { .brand__text { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.hero__h1-accent { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 500;
  padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.chips svg { width: 16px; height: 16px; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 420px); }
.qr-card {
  position: relative; background: #fff; border-radius: 28px; padding: 1.25rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.qr-card img { border-radius: 14px; width: 100%; }
.qr-card__badge {
  position: absolute; left: -14px; bottom: 28px; background: var(--ink); color: var(--ink-text);
  padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow);
}
.qr-card__badge--gold { left: auto; right: -14px; bottom: auto; top: 28px; background: var(--gold); color: #111; }
.hero__glow {
  position: absolute; inset: -18% -18% auto auto; width: 120%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%);
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(100%, 340px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.breadcrumbs { font-size: .875rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; justify-content: center; gap: .4rem; padding: 0; margin: 0; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumbs a { color: inherit; }

/* ---------- Answer box (AI / featured-snippet friendly summary) ---------- */
.answer-box {
  max-width: 820px; margin: 0 auto; padding: 1.5rem 1.75rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow);
}
.answer-box h2 { font-size: 1.35rem; }
.answer-box p:last-child { margin-bottom: 0; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-top: .9rem; }
.card p { color: var(--text-muted); margin: 0; }
.card__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--ink); color: var(--ink-text);
}
.card__icon svg { width: 24px; height: 24px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { position: relative; padding: 1.6rem; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.5rem; display: block; margin-bottom: .6rem;
}
.steps p { color: var(--text-muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-table {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.25rem; align-items: stretch;
  max-width: 1000px; margin: 0 auto;
}
@media (max-width: 900px) { .pricing-table { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pricing-table { grid-template-columns: 1fr; } }

.pricing-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-plan:hover { border-color: var(--border-strong); }
.pricing-plan h2, .pricing-plan h3 { font-size: 1.3rem; text-align: center; margin: 0 0 .5rem; letter-spacing: -.01em; }
.pricing-plan .price { text-align: center; margin: 0 0 1rem; color: var(--text-muted); font-size: .9rem; }
.price-dollars { font-size: 2.1rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.price-cents { font-size: 1rem; font-weight: 700; vertical-align: super; margin-left: 1px; color: var(--text); }
.price-custom { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.pricing-plan ul { list-style: none; padding: 0; margin: 0 0 1.25rem; flex: 1; font-size: .93rem; }
.pricing-plan li { display: flex; gap: .5rem; align-items: flex-start; padding: .3rem 0; }
.pricing-plan li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: .3rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pricing-plan .plan-select { margin-top: auto; }
.pricing-plan .paypal-slot:not(:empty) { margin-top: .75rem; }
/* PayPal's card + "Powered by" area always renders light: frame it as a deliberate payment panel in dark mode */
:root[data-theme="dark"] .pricing-plan .paypal-slot:not(:empty) { background: #fff; border-radius: 12px; padding: 8px 4px 2px; }
.pricing-plan.selected {
  border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-4px);
}
.pricing-plan.selected::after {
  content: "✔"; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  background: var(--ink); color: var(--ink-text); border-radius: 50%;
}
.pricing-plan.selected .plan-select { display: none; }
.best-value { border-color: var(--gold); animation: pulse 2.4s infinite; }
.best-value::before {
  content: "★ Best Value"; position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #111; font-size: .75rem; font-weight: 700; white-space: nowrap;
  padding: .2rem .7rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.pricing-note { text-align: center; color: var(--text-muted); font-size: .92rem; margin-top: 1.75rem; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.compare caption { text-align: left; padding: 1rem 1.25rem; font-weight: 700; }
.compare th, .compare td { padding: .8rem 1rem; text-align: center; border-top: 1px solid var(--border); }
.compare th[scope="row"] { text-align: left; font-weight: 600; }
.compare thead th { background: var(--bg-soft); font-size: .9rem; }
.compare .yes { font-weight: 700; }
.compare .no { color: var(--text-muted); }

/* ---------- Plan detail sections (features page) ---------- */
.plan-section { scroll-margin-top: 100px; }
.plan-section .card { height: 100%; }
.plan-section .card ul { margin: .75rem 0 0; padding-left: 1.1rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  margin-bottom: .75rem; transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary h2, .faq summary h3 { display: inline; font-size: inherit; margin: 0; letter-spacing: normal; }
.faq .faq__a { padding: 0 1.25rem 1.1rem; color: var(--text-muted); }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose .updated { font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-card { max-width: 640px; margin: 0 auto; text-align: center; padding: 2.5rem 1.75rem; }
.contact-card .email {
  display: inline-block; font-size: clamp(1.05rem, 3.4vw, 1.4rem); font-weight: 700; word-break: break-all;
  margin: .5rem 0 1.5rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #312e81 0%, #86198f 50%, #9a3412 100%); color: #fff; border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2.25rem, 6vw, 3.75rem) clamp(1.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: inherit; margin: 0 0 .35rem; }
.cta-band p { margin: 0; opacity: .8; }
.cta-band .btn--primary { background: #fff; color: #111; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-display); font-weight: 400; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .45rem 0; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { text-decoration: underline; }
.footer-about p { color: var(--text-muted); max-width: 34ch; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); }
.social a:hover { border-color: var(--border-strong); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; color: var(--text-muted); font-size: .875rem;
}

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 1rem; }
.contact-side .card p + p { margin-top: .5rem; }
.email-link { font-weight: 700; color: var(--text); word-break: break-all; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .85rem; min-height: 46px;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--border-strong); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
:root[data-theme="dark"] .form-status.ok { color: #4ade80; }
:root[data-theme="dark"] .form-status.err { color: #f87171; }


/* ==========================================================================
   Color layer: accents drawn from the QR sample palette
   ========================================================================== */
[data-accent="indigo"]  { --accent: var(--indigo); }
[data-accent="teal"]    { --accent: var(--teal); }
[data-accent="orange"]  { --accent: var(--orange); }
[data-accent="red"]     { --accent: var(--red); }
[data-accent="emerald"] { --accent: var(--emerald); }
[data-accent="magenta"] { --accent: var(--magenta); }
[data-accent="blue"]    { --accent: var(--blue); }
[data-accent="slate"]   { --accent: var(--slate); }

.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow--color { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.inline-icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-right: .25rem; }

/* Hero: soft color mesh + stacked sample codes */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 -6rem; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent);
  background:
    radial-gradient(40rem 26rem at 85% 10%, color-mix(in srgb, var(--indigo) 22%, transparent), transparent 70%),
    radial-gradient(30rem 22rem at 70% 85%, color-mix(in srgb, var(--teal) 20%, transparent), transparent 70%),
    radial-gradient(28rem 20rem at 5% 0%, color-mix(in srgb, var(--magenta) 16%, transparent), transparent 70%),
    radial-gradient(26rem 18rem at 35% 100%, color-mix(in srgb, var(--orange) 14%, transparent), transparent 70%);
}
.hero__glow { display: none; }
.qr-stack { position: relative; width: min(100%, 400px); aspect-ratio: 1 / 1.08; margin: 0 auto; }
.qr-stack .qr-card {
  position: absolute; top: 4%; left: 50%; width: 86%; padding: .9rem; border-radius: 24px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card-bg, #fff); box-shadow: var(--shadow-lg); font: inherit; color: #111;
  transform-origin: 50% 60%;
  transition: transform .65s cubic-bezier(.2, .8, .2, 1), filter .5s ease, opacity .5s ease, box-shadow .5s ease;
}
.qr-stack .qr-card img { border-radius: 12px; width: 100%; }
.qr-card__face { display: block; }
.qr-stack .qr-card[data-slot="front"] { z-index: 3; transform: translateX(-50%) rotate(0) scale(1); background: #fff; cursor: default; }
.qr-stack .qr-card[data-slot="front"] .qr-card__face { animation: float 6s ease-in-out infinite; }
.qr-stack .qr-card[data-slot="left"]  { z-index: 1; transform: translate(-78%, -7%) rotate(-10deg) scale(.68); filter: blur(1.2px) saturate(.9); opacity: .92; }
.qr-stack .qr-card[data-slot="right"] { z-index: 2; transform: translate(-22%, -5%) rotate(9deg) scale(.68); filter: blur(1.2px) saturate(.9); opacity: .92; }
.qr-stack .qr-card[data-slot="hidden"] { z-index: 0; opacity: 0; transform: translate(-50%, 3%) scale(.5); filter: blur(2px); pointer-events: none; }
.qr-stack .qr-card:not([data-slot="front"]):not([data-slot="hidden"]):hover, .qr-stack .qr-card:not([data-slot="front"]):focus-visible { filter: none; opacity: 1; }
.qr-stack .qr-card[data-slot="left"]:hover  { transform: translate(-80%, -9%) rotate(-12deg) scale(.7); }
.qr-stack .qr-card[data-slot="right"]:hover { transform: translate(-20%, -7%) rotate(11deg) scale(.7); }
.qr-stack > .qr-card__badge { z-index: 4; pointer-events: none; }
.qr-stack > .qr-card__badge:not(.qr-card__badge--gold) { left: 0; bottom: 3%; }   /* kept off the code so it stays scannable */
.qr-stack > .qr-card__badge--gold { right: 2%; top: -2%; }
@media (max-width: 880px), (pointer: coarse) { .qr-stack > .qr-card__badge:not(.qr-card__badge--gold) { display: none; } }
.qr-card__open { display: none; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); padding: .35rem .8rem; border-radius: 999px;
  background: var(--ink); color: var(--ink-text); font-size: .8rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); }
@media (max-width: 880px), (pointer: coarse) { .qr-stack .qr-card[data-slot="front"] { cursor: pointer; } .qr-card[data-slot="front"] .qr-card__open { display: block; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__scan { text-align: center; font-size: .88rem; color: var(--text-muted); margin: 1rem 0 0; }
@media (max-width: 880px) { .qr-stack { width: min(100%, 320px); } }

/* Gallery */
.section--gallery { position: relative; background:
  radial-gradient(50rem 30rem at 100% 0%, color-mix(in srgb, var(--magenta) 8%, transparent), transparent 70%),
  radial-gradient(50rem 30rem at 0% 100%, color-mix(in srgb, var(--teal) 8%, transparent), transparent 70%); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }
.qr-sample {
  margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; border-top: 4px solid var(--accent); transition: transform .2s ease, box-shadow .2s ease;
}
.qr-sample:hover { transform: translateY(-4px); box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 25%, transparent); }
.qr-sample__img { padding: 1rem; }
.qr-sample__img img { width: 100%; border-radius: 8px; }
.qr-sample figcaption { padding: .9rem 1rem 1.1rem; }
.qr-sample h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--accent-ink); }
.qr-sample__spec { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; margin: 0; font-size: .82rem; }
.qr-sample__spec dt { color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.qr-sample__spec dd { margin: 0; font-weight: 600; display: flex; gap: .3rem; align-items: center; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border); }

/* QR types */
.types-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 980px) { .types-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .types-grid { grid-template-columns: 1fr; } }
.type-card {
  position: relative; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--surface)) 0%, var(--surface) 60%);
}
.type-card h3 { margin: .9rem 0 .4rem; }
.type-card p { color: var(--text-muted); margin: 0 0 .9rem; font-size: .95rem; }
.type-card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; }
.type-card__icon svg { width: 24px; height: 24px; }
.type-card__plan { font-size: .75rem; font-weight: 700; color: var(--accent-ink); border: 1px solid currentColor; border-radius: 999px; padding: .15rem .6rem; }

/* Colorful feature icons + steps (cycle through the palette) */
.grid > .card:nth-child(8n+1) .card__icon { background: var(--indigo); }
.grid > .card:nth-child(8n+2) .card__icon { background: var(--teal); }
.grid > .card:nth-child(8n+3) .card__icon { background: var(--magenta); }
.grid > .card:nth-child(8n+4) .card__icon { background: var(--orange); }
.grid > .card:nth-child(8n+5) .card__icon { background: var(--emerald); }
.grid > .card:nth-child(8n+6) .card__icon { background: var(--blue); }
.grid > .card:nth-child(8n+7) .card__icon { background: var(--red); }
.grid > .card:nth-child(8n+8) .card__icon { background: var(--slate); }
.grid > .card .card__icon { color: #fff; }
.steps li:nth-child(1)::before { color: var(--indigo); }
.steps li:nth-child(2)::before { color: var(--magenta); }
.steps li:nth-child(3)::before { color: var(--orange); }
.steps li:nth-child(1) { border-color: color-mix(in srgb, var(--indigo) 50%, transparent); }
.steps li:nth-child(2) { border-color: color-mix(in srgb, var(--magenta) 50%, transparent); }
.steps li:nth-child(3) { border-color: color-mix(in srgb, var(--orange) 50%, transparent); }
.answer-box { border-left: 4px solid transparent; border-image: var(--grad) 1; border-image-slice: 1; }

/* ---------- Dashboard showcase (HTML illustration of the admin app) ---------- */
.appwin { margin: 0 auto; max-width: 1060px; border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg), 0 30px 80px -30px color-mix(in srgb, var(--indigo) 45%, transparent); }
.appwin__bar { display: flex; align-items: center; gap: 6px; padding: .65rem .9rem; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.appwin__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.appwin__bar span:nth-child(2) { background: #febc2e; } .appwin__bar span:nth-child(3) { background: #28c840; }
.appwin__bar b { margin: 0 auto; font: 500 .78rem/1 var(--font-body); color: var(--text-muted); background: var(--surface);
  padding: .35rem 1.2rem; border-radius: 999px; border: 1px solid var(--border); }
.appwin__body { display: grid; grid-template-columns: 200px 1fr; min-height: 520px; font-size: .82rem; }
.appwin figcaption, .appwin > figcaption { padding: .75rem 1rem; font-size: .82rem; color: var(--text-muted); text-align: center; border-top: 1px solid var(--border); }
.aw-side { background: var(--bg-soft); border-right: 1px solid var(--border); padding: 1rem .75rem; display: flex; flex-direction: column; gap: 1rem; }
.aw-brand { font-family: var(--font-display); font-size: .75rem; letter-spacing: .05em; line-height: 1.6; padding: 0 .5rem; }
.aw-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.aw-side li { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 8px; font-weight: 600; color: var(--text-muted); }
.aw-side li svg { width: 16px; height: 16px; }
.aw-side li.on { background: var(--ink); color: var(--ink-text); }
.aw-plan { margin-top: auto; padding: .75rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: .3rem; }
.aw-plan span { color: var(--text-muted); font-size: .75rem; }
.aw-meter { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.aw-meter i { display: block; height: 100%; background: var(--grad); }
.aw-main { padding: 1rem; display: grid; gap: .85rem; align-content: start; }
.aw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.aw-tiles > div { padding: .75rem .85rem; border-radius: 10px; border: 1px solid var(--border); display: grid; gap: .1rem;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%); }
.aw-tiles small { color: var(--text-muted); }
.aw-tiles b { font-size: 1.35rem; letter-spacing: -.02em; }
.aw-tiles em { font-style: normal; color: var(--accent-ink); font-weight: 600; font-size: .75rem; }
.aw-studio { display: grid; grid-template-columns: 1fr 240px; gap: 1rem; padding: .9rem; border: 1px solid var(--border); border-radius: 12px; }
.aw-form { display: grid; gap: .6rem; align-content: start; }
.aw-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .75rem; color: var(--text-muted); }
.aw-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.aw-tabs span { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .65rem; border-radius: 8px; border: 1px solid var(--border); font-weight: 600; }
.aw-tabs span.on { border-color: var(--indigo); color: var(--indigo); background: color-mix(in srgb, var(--indigo) 10%, transparent); }
.aw-tabs svg { width: 14px; height: 14px; }
.aw-input { display: block; padding: .5rem .65rem; border-radius: 8px; border: 1.5px solid var(--indigo); color: var(--text); font-weight: 500; background: var(--bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-swatches { display: flex; gap: .4rem; }
.aw-swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.aw-swatches i:nth-child(2) { box-shadow: 0 0 0 2px var(--indigo); }
.aw-chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.aw-chips i { font-style: normal; padding: .25rem .55rem; border-radius: 99px; border: 1px solid var(--border); color: var(--text); font-weight: 500; }
.aw-chips i.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.aw-btn { justify-self: start; margin-top: .2rem; padding: .45rem .9rem; border-radius: 99px; background: var(--ink); color: var(--ink-text); font-weight: 700; }
.aw-preview { border-radius: 12px; padding: .9rem; display: grid; place-items: center; gap: .4rem; align-content: center; }
.aw-preview img { width: 100%; border-radius: 8px; }
.aw-preview small { color: #4338ca; font-weight: 700; }
.aw-bottom { display: grid; grid-template-columns: 1fr 220px; gap: .85rem; }
.aw-library { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.aw-mini { border: 1px solid var(--border); border-radius: 10px; padding: .4rem; display: grid; gap: .15rem; }
.aw-mini > div { border-radius: 6px; padding: .3rem; }
.aw-mini img { width: 100%; }
.aw-mini span { font-weight: 600; font-size: .75rem; }
.aw-mini small { color: var(--text-muted); font-size: .75rem; }
.aw-stats { border: 1px solid var(--border); border-radius: 10px; padding: .7rem; display: grid; gap: .4rem; color: var(--magenta);
  background: linear-gradient(160deg, color-mix(in srgb, var(--magenta) 10%, var(--surface)), var(--surface) 70%); }
.aw-stats small { color: var(--text-muted); }
.aw-stats svg { width: 100%; height: 90px; }
@media (max-width: 900px) {
  .appwin__body { grid-template-columns: 1fr; min-height: 0; }
  .aw-side { display: none; }
  .aw-studio, .aw-bottom { grid-template-columns: 1fr; }
  .aw-preview { max-width: 260px; justify-self: center; }
}
@media (max-width: 520px) { .aw-tiles { grid-template-columns: 1fr 1fr; } .aw-tiles > div:last-child { display: none; } .aw-library { grid-template-columns: repeat(2, 1fr); } }

.dash-callouts { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
@media (max-width: 980px) { .dash-callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dash-callouts { grid-template-columns: 1fr; } }
.dash-callouts li { display: flex; gap: .8rem; align-items: flex-start; }
.dc-icon { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; }
.dc-icon svg { width: 20px; height: 20px; }
.dash-callouts h3 { font-size: 1rem; margin: 0 0 .25rem; }
.dash-callouts h3 em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--accent-ink); border: 1px solid currentColor; border-radius: 99px; padding: .05rem .45rem; margin-left: .25rem; vertical-align: 2px; white-space: nowrap; }
.dash-callouts p { margin: 0; color: var(--text-muted); font-size: .92rem; }

/* ---------- QR confetti (one burst per page per session; skipped for reduced motion) ---------- */
.qr-confetti { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.qr-confetti__piece { position: absolute; border-radius: 6px; will-change: transform, opacity; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }

/* text-safe accent colour per [data-accent] */
[data-accent="indigo"]  { --accent-ink: var(--indigo-ink); } [data-accent="teal"] { --accent-ink: var(--teal-ink); }
[data-accent="orange"]  { --accent-ink: var(--orange-ink); } [data-accent="red"] { --accent-ink: var(--red-ink); }
[data-accent="emerald"] { --accent-ink: var(--emerald-ink); } [data-accent="magenta"] { --accent-ink: var(--magenta-ink); }
[data-accent="blue"]    { --accent-ink: var(--blue-ink); } [data-accent="slate"] { --accent-ink: var(--slate-ink); }

/* QA: dashboard illustration text sizes + dark-mode contrast */
.aw-tiles small, .aw-preview small, .aw-stats small { font-size: .75rem; }
:root[data-theme="dark"] .aw-chips i.on { color: #0b0b0c; }
