/* QR Code Reader & Generator — site stylesheet
 * Clean, fast, responsive. Uses system font stack for zero external font requests.
 * Brand palette matches the iOS app theme color (#5A63E8).
 */

:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fc;
    --bg-elevated: #ffffff;
    --bg-hero: linear-gradient(180deg, #eff1fe 0%, #ffffff 100%);
    --text: #0f172a;
    --text-muted: #475569;
    --text-subtle: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --brand: #5a63e8;
    --brand-strong: #434ce0;
    --brand-soft: #eef0fe;
    --accent: #0ea5e9;
    --success: #16a34a;
    --warning: #ea580c;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.10);
    --max-w: 1160px;
    --max-w-narrow: 780px;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1120;
        --bg-soft: #111827;
        --bg-elevated: #161f33;
        --bg-hero: linear-gradient(180deg, #131836 0%, #0b1120 100%);
        --text: #f1f5f9;
        --text-muted: #94a3b8;
        --text-subtle: #64748b;
        --border: #1e293b;
        --border-strong: #334155;
        --brand: #757df5;
        --brand-strong: #5a63e8;
        --brand-soft: #1d2247;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.ico {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}
.feature-icon .ico,
.format-badge .ico,
.step-num .ico { width: 1.15em; height: 1.15em; }
.stars .ico { width: 0.95em; height: 0.95em; margin-inline-end: 1px; }
.meta-pill .ico { margin-inline-end: 5px; color: var(--brand); }
.check .ico { color: var(--success); margin-inline-end: 6px; }
.cross .ico { color: var(--text-subtle); margin-inline-end: 6px; }
.partial .ico { color: var(--warning); margin-inline-end: 6px; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow {
    width: 100%;
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    top: 8px;
    background: var(--brand);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    z-index: 1000;
}
.skip-link:focus { inset-inline-start: 12px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
    .site-header { background: rgba(11, 17, 32, 0.88); }
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    box-shadow: var(--shadow-sm);
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--brand); }
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch summary {
    list-style: none;
    cursor: pointer;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { border-color: var(--brand); color: var(--text); }
.lang-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 6px);
    min-width: 190px;
    max-height: 340px;
    overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr;
}
.lang-menu a {
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.88rem;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.lang-menu a:hover,
.lang-menu a[aria-current="true"] {
    background: var(--brand-soft);
    color: var(--brand);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(90, 99, 232, 0.28);
}
.btn-primary:hover { background: var(--brand-strong); color: #ffffff; }
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; border-radius: var(--radius-sm); }

/* App Store badge */
.appstore-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.appstore-badge:hover {
    text-decoration: none;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.appstore-badge svg,
.appstore-badge .apple-logo { width: 22px; height: 26px; fill: #ffffff; flex-shrink: 0; }
.appstore-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: start;
}
.appstore-badge-text small { font-size: 0.68rem; opacity: 0.85; font-weight: 400; }
.appstore-badge-text strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }

/* Hero */
.hero {
    background: var(--bg-hero);
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 16px;
}
.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}
.hero p.lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin: 0 0 24px;
    max-width: 58ch;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.stars { color: #f59e0b; letter-spacing: 1px; }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.phone-shot {
    width: 230px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}
.phone-shot.secondary {
    width: 195px;
    margin-top: 28px;
    opacity: 0.95;
}

/* Desktop -> iPhone QR handoff */
.qr-handoff {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    max-width: 440px;
    box-shadow: var(--shadow-sm);
}
.qr-handoff-img {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #ffffff;
    padding: 3px;
    flex-shrink: 0;
}
.qr-handoff-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: start;
}
.qr-handoff-text strong {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.25;
}
.qr-handoff-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.cta-box .qr-handoff,
.cta-band .qr-handoff {
    margin-inline: auto;
}
@media (max-width: 768px) {
    .qr-handoff { display: none; }
}

/* Sections */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}
.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    line-height: 1.22;
}
.section-header p { color: var(--text-muted); margin: 0; font-size: 1.04rem; }

/* Grid cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
    font-weight: 700;
}
.card h3 {
    font-size: 1.14rem;
    margin: 0 0 8px;
    line-height: 1.3;
}
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p {
    color: var(--text-muted);
    margin: 0 0 14px;
    font-size: 0.95rem;
    flex-grow: 1;
}
.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Format badges */
.format-group { margin-bottom: 24px; }
.format-group h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text);
}
.badge-pro {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: transparent;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 3px 9px;
}

/* Screenshot gallery */
.screens-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: start;
}
.screen-item {
    text-align: center;
}
.screen-item img {
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    margin: 0 auto 8px;
}
.screen-item figcaption {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Article / Guide layout */
.breadcrumbs {
    padding: 18px 0 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumbs li+li::before {
    content: "/";
    margin-inline-end: 6px;
    color: var(--text-subtle);
}

.article { padding: 32px 0 64px; }
.article-header {
    max-width: var(--max-w-narrow);
    margin: 0 auto 28px;
}
.article-header h1 {
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.article-header .lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-subtle);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.article-body {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}
.article-body h2 {
    font-size: 1.5rem;
    margin: 36px 0 12px;
    letter-spacing: -0.015em;
    line-height: 1.28;
}
.article-body h3 {
    font-size: 1.18rem;
    margin: 24px 0 8px;
    line-height: 1.35;
}
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol {
    margin: 0 0 18px;
    padding-inline-start: 22px;
}
.article-body li { margin-bottom: 8px; }
.article-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

/* TL;DR / Callout boxes */
.tldr {
    background: var(--brand-soft);
    border-inline-start: 4px solid var(--brand);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin: 0 0 26px;
}
.tldr strong {
    display: block;
    color: var(--brand);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.tldr p { margin: 0; }

.note {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 20px 0;
    font-size: 0.95rem;
}

/* Step list */
.steps {
    list-style: none;
    padding: 0;
    margin: 20px 0 28px;
    counter-reset: step;
}
.steps li {
    position: relative;
    padding: 18px 20px 18px 60px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 16px;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.steps li h3, .steps li strong.step-title {
    display: block;
    font-size: 1.05rem;
    margin: 0 0 4px;
    color: var(--text);
}
.steps li p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin: 20px 0 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    background: var(--bg-elevated);
}
th, td {
    padding: 12px 14px;
    text-align: start;
    border-bottom: 1px solid var(--border);
}
th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--text);
}
tr:last-child td { border-bottom: none; }
.yes { color: var(--success); font-weight: 600; }
.no { color: var(--text-subtle); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    padding: 14px 18px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--brand);
    font-weight: 500;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Inline App CTA Banner */
.app-cta-card {
    background: linear-gradient(135deg, #434ce0 0%, #5a63e8 55%, #0ea5e9 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}
.app-cta-card h3 {
    margin: 0 0 6px;
    font-size: 1.32rem;
    color: #ffffff;
}
.app-cta-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    max-width: 54ch;
    font-size: 0.96rem;
}
.app-cta-card .appstore-badge {
    background: #000000;
    flex-shrink: 0;
}

/* Browser tools (QR Generator, Scanner, WiFi Card, Barcode Generator) */
.tool-box {
    background: var(--bg-elevated);
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    margin: 20px 0 28px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.tool-box.dragover {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.tool-box input[type="file"] { display: none; }
.tool-privacy-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.qr-workspace {
    display: grid;
    grid-template-columns: 1.2fr 0.85fr;
    gap: 22px;
    margin: 22px 0 32px;
    align-items: start;
}
.qr-form-panel,
.qr-preview-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.qr-preview-panel {
    position: sticky;
    top: 84px;
    text-align: center;
}
.type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.type-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.12s ease;
}
.type-tab:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.type-tab[aria-selected="true"],
.type-tab.active {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}
.tool-form-group {
    margin-bottom: 14px;
    text-align: start;
}
.tool-form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}
.tool-input,
.tool-textarea,
.tool-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.94rem;
    transition: border-color 0.15s ease;
}
.tool-input:focus,
.tool-textarea:focus,
.tool-select:focus {
    outline: none;
    border-color: var(--brand);
}
.tool-textarea {
    min-height: 86px;
    resize: vertical;
}
.tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.qr-canvas-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin-bottom: 14px;
}
.qr-canvas-wrap svg,
.qr-canvas-wrap canvas {
    max-width: 220px;
    max-height: 220px;
    width: 100%;
    height: auto;
}
.barcode-canvas-wrap svg,
.barcode-canvas-wrap canvas {
    max-width: 100%;
    max-height: 160px;
}
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}
.pro-upsell-strip {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    background: var(--brand-soft);
    border: 1px solid rgba(90, 99, 232, 0.25);
    text-align: start;
    font-size: 0.85rem;
}
.pro-upsell-strip strong {
    display: block;
    color: var(--brand);
    margin-bottom: 3px;
    font-size: 0.88rem;
}
.pro-upsell-strip p {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Scanner tool */
.scanner-video-wrap {
    display: none;
    margin: 16px auto;
    max-width: 440px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--brand);
    background: #000;
    position: relative;
}
.scanner-video-wrap video {
    width: 100%;
    display: block;
}
.scan-result-card {
    display: none;
    margin: 20px 0;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
    text-align: start;
}
.scan-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.scan-result-output {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    word-break: break-all;
    margin-bottom: 12px;
}

/* Footer */
.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 52px 0 36px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
}
.footer-col h4 {
    color: var(--text);
    font-size: 0.92rem;
    margin: 0 0 12px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.84rem;
    color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p.lead { margin-inline: auto; }
    .hero-cta, .hero-meta { justify-content: center; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .screens-row { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .qr-workspace { grid-template-columns: 1fr; }
    .qr-preview-panel { position: static; }
}
@media (max-width: 640px) {
    .site-nav { display: none; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .screens-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .app-cta-card { text-align: center; justify-content: center; }
    .tool-row { grid-template-columns: 1fr; }
}
