/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 * Blog article typography.
 *
 * Written as plain CSS rather than Tailwind's `prose` classes: the
 * @tailwindcss/typography plugin is present in package.json but is not loaded
 * by app/assets/tailwind/application.css (Tailwind v4 needs an explicit
 * `@plugin` directive), so `prose` would silently render as unstyled markup.
 * These rules are scoped to .blog-content so they cannot leak into the rest of
 * the app, and this file is linked after tailwind.css in the layout.
 */
.blog-content {
  color: #374151;
  line-height: 1.75;
  font-size: 1.0625rem;
}

.blog-content > * + * {
  margin-top: 1.25em;
}

.blog-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem;
}

.blog-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 5rem;
}

.blog-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content a {
  color: #7c3aed;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content a:hover {
  color: #5b21b6;
}

.blog-content strong {
  font-weight: 700;
  color: #1f2937;
}

.blog-content ul,
.blog-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.blog-content ul { list-style-type: disc; }
.blog-content ol { list-style-type: decimal; }

.blog-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.blog-content li > ul,
.blog-content li > ol {
  margin: 0.5rem 0;
}

.blog-content blockquote {
  border-left: 4px solid #a78bfa;
  background: #f5f3ff;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #4c1d95;
  font-style: italic;
}

.blog-content blockquote p:last-child { margin-bottom: 0; }

.blog-content code {
  background: #f3f4f6;
  color: #be123c;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.blog-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Tables scroll on small screens instead of forcing the page to scroll. */
.blog-content .table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.blog-content th,
.blog-content td {
  border: 1px solid #e5e7eb;
  padding: 0.625rem 0.875rem;
  text-align: left;
}

.blog-content th {
  background: #f9fafb;
  font-weight: 600;
  color: #1f2937;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.blog-content hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2.5rem 0;
}

/* QRMage: a compact, generator-first workspace. */
.qr-home { --qr-ink: #241a38; --qr-purple: #7038d5; --qr-muted: #696274; --qr-line: #e6e0ed; color: var(--qr-ink); max-width: 1080px; margin: 0 auto; }
.qr-site-nav { margin-bottom: 30px; }
.qr-site-nav a { font-size: 14px; }
.qr-intro { margin: 0 0 28px; }
.qr-intro h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: 750; letter-spacing: -1.8px; }
.qr-intro > p { margin-top: 10px; color: var(--qr-muted); font-size: 18px; }
.qr-promises { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 13px; }
.qr-promises li::before { content: '✓'; color: var(--qr-purple); margin-right: 7px; }
.qr-workspace { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--qr-line); border-radius: 18px; overflow: hidden; }
.qr-editor { padding: 36px; min-width: 0; }
.qr-field-title { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.qr-help, .qr-editor-note p, .qr-bulk-link { color: var(--qr-muted); font-size: 14px; line-height: 1.7; }
.qr-help { margin: 8px 0 16px; }
.qr-content-input { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid #b7a9c9; border-radius: 8px; font-size: 16px; background: white; }
.qr-home :is(input, select, button, a, summary):focus-visible { outline: 3px solid #9863e5; outline-offset: 4px; }
.qr-customize { margin-top: 22px; border-top: 1px solid var(--qr-line); border-bottom: 1px solid var(--qr-line); }
.qr-customize summary { padding: 19px 0; cursor: pointer; font-size: 15px; font-weight: 600; }
.qr-customize summary span { float: right; color: var(--qr-muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.qr-customize-body { padding-bottom: 22px; }
.qr-editor-note { margin-top: 28px; }
.qr-editor-note strong { font-size: 14px; font-weight: 600; }
.qr-editor-note p { margin-top: 8px; max-width: 40ch; }
.qr-bulk-link { margin-top: 26px; }
.qr-home a:not(.qr-secondary-button) { color: var(--qr-purple); text-underline-offset: 4px; }
.qr-home :is(.qr-bulk-link, .qr-more-guides, .qr-faq) a { text-decoration: underline; }
.qr-preview { background: #f6f3fa; padding: 26px 36px; display: flex; flex-direction: column; align-items: center; border-left: 1px solid var(--qr-line); min-width: 0; }
.qr-preview-heading { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.qr-preview-heading h2 { font-size: 14px; font-weight: 600; }
.qr-preview-heading > span { font-size: 12px; color: var(--qr-muted); }
.qr-preview-heading > span::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #467452; border-radius: 50%; margin-right: 6px; }
.qr-paper { padding: 20px; background: white; border: 1px solid var(--qr-line); border-radius: 8px; width: min(100%, 270px); aspect-ratio: 1; display: grid; place-items: center; }
.qr-paper #qrcode { width: 100%; }
.qr-paper :is(img, canvas) { max-width: 100%; height: auto !important; margin: auto; }
.qr-preview #downloadContainer { width: min(100%, 310px); margin-top: 22px; }
.qr-download { background: var(--qr-purple); color: white; border: 0; border-radius: 8px; padding: 14px 22px; font-size: 15px; font-weight: 650; width: 100%; cursor: pointer; }
.qr-download:hover { background: #5826b2; }
.qr-preview-note { color: var(--qr-muted); font-size: 12px; margin-top: 10px; }
.qr-preview #successMessage { font-size: 13px; color: #31583b; margin-top: 12px; text-align: center; }
.qr-account-note { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; margin-top: 18px; }
.qr-text-button { color: var(--qr-purple); text-decoration: underline; cursor: pointer; }
.qr-guides { padding: 52px 0; }
.qr-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.qr-section-heading h2, .qr-faq h2 { font-size: 24px; font-weight: 650; letter-spacing: -.7px; }
.qr-section-heading > a { font-size: 13px; white-space: nowrap; }
.qr-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 26px; }
.qr-guide-grid > a { padding: 0 18px 0 0; border-right: 1px solid var(--qr-line); }
.qr-guide-grid > a:last-child { border-right: 0; }
.qr-guide-grid h3 { font-size: 17px; font-weight: 650; margin: 12px 0 6px; color: var(--qr-ink); }
.qr-guide-grid p { color: var(--qr-muted); font-size: 14px; line-height: 1.6; }
.qr-guide-grid a:hover h3 { color: var(--qr-purple); text-decoration: underline; }
.qr-guide-symbol { display: inline-grid; place-items: center; width: 34px; height: 34px; background: #f1eafa; border-radius: 8px; font-size: 24px; }
.qr-more-guides { margin-top: 24px; font-size: 13px; color: var(--qr-muted); line-height: 1.8; }
.qr-tracking { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px; background: #f6f3fa; border-radius: 16px; align-items: center; }
.qr-feature-label { color: var(--qr-purple); font-size: 13px; font-weight: 600; }
.qr-tracking h2 { font-size: 34px; font-weight: 650; line-height: 1.15; letter-spacing: -1px; margin: 12px 0 18px; }
.qr-tracking p, .qr-tracking li { font-size: 14px; line-height: 1.7; color: var(--qr-muted); }
.qr-tracking ul { margin: 18px 0 24px; }
.qr-tracking li { margin-top: 7px; }
.qr-tracking li::before { content: '✓'; color: var(--qr-purple); margin-right: 9px; }
.qr-secondary-button { display: inline-block; border: 1px solid #b7a9c9; padding: 11px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; background: white; }
.qr-secondary-button:hover { border-color: var(--qr-purple); color: var(--qr-purple); }
.qr-tracking .qr-tracking-footnote { font-size: 12px; margin-top: 14px; }
.qr-dashboard-example { background: white; padding: 24px; border: 1px solid var(--qr-line); border-radius: 10px; min-width: 0; }
.qr-example-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.qr-example-heading span { font-size: 10px; background: #f1eafa; padding: 4px 7px; border-radius: 4px; color: #64418c; white-space: nowrap; }
.qr-tracking .qr-example-url { font-size: 11px; border-bottom: 1px solid var(--qr-line); padding: 12px 0; }
.qr-example-url span { display: block; color: var(--qr-ink); }
.qr-example-total { display: flex; align-items: baseline; gap: 10px; margin: 16px 0; }
.qr-example-total strong { font-size: 34px; font-weight: 650; letter-spacing: -1px; }
.qr-example-total span { font-size: 12px; color: var(--qr-muted); }
.qr-example-chart { display: flex; align-items: flex-end; height: 110px; gap: 12px; padding-bottom: 20px; }
.qr-example-chart > div { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.qr-example-chart i { background: #b899e6; border-radius: 3px 3px 0 0; display: block; min-height: 2px; }
.qr-example-chart > div:nth-child(6) i { background: var(--qr-purple); }
.qr-example-chart span { position: absolute; top: 100%; margin-top: 7px; width: 100%; text-align: center; font-size: 10px; color: var(--qr-muted); }
.qr-example-bottom { display: flex; justify-content: space-between; margin-top: 22px; border-top: 1px solid var(--qr-line); padding-top: 14px; font-size: 10px; color: var(--qr-muted); }
.qr-example-bottom strong { display: block; font-size: 12px; color: var(--qr-ink); margin-top: 3px; }
.qr-faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; padding: 56px 0 16px; }
.qr-faq > div > p { font-size: 14px; color: var(--qr-muted); margin-top: 12px; }
.qr-faq details { border-bottom: 1px solid var(--qr-line); }
.qr-faq summary { padding: 18px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.qr-faq details p { padding: 0 0 18px; color: var(--qr-muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 760px) {
  .qr-workspace, .qr-tracking, .qr-faq { grid-template-columns: 1fr; }
  .qr-editor, .qr-preview { padding: 24px; }
  .qr-preview { border-left: 0; border-top: 1px solid var(--qr-line); }
  .qr-editor-note { display: none; }
  .qr-bulk-link { margin-top: 18px; }
  .qr-intro h1 { letter-spacing: -1px; }
  .qr-promises { gap: 8px 14px; font-size: 11px; }
  .qr-tracking { gap: 28px; padding: 24px; }
  .qr-faq { gap: 12px; padding-top: 36px; }
  .qr-guide-grid { gap: 18px; }
  .qr-guide-grid > a { padding-right: 12px; }
  .qr-section-heading h2 { font-size: 21px; }
  .qr-site-nav > div > div { padding-left: 0; padding-right: 0; }
  .qr-site-nav > div > div:last-child > .hidden { display: none; }
  .qr-site-nav .sm\:hidden { display: block; }
}
@media (max-width: 480px) {
  .qr-site-shell { padding: 16px; }
  .qr-guide-grid { grid-template-columns: 1fr; gap: 22px; }
  .qr-guide-grid > a { border-right: 0; padding-left: 48px; position: relative; }
  .qr-guide-symbol { position: absolute; left: 0; top: 2px; }
  .qr-guide-grid h3 { margin-top: 0; }
  .qr-section-heading { display: block; }
  .qr-section-heading > a { display: inline-block; margin-top: 12px; }
  .qr-customize summary span { font-size: 11px; }
  .qr-editor, .qr-preview { padding: 20px; }
}
