﻿/* Phase 1 brand theme overrides — loaded after Vite build for immediate effect */

:root {
    --qr-accent: #c45c26;
}

.site-body-pattern {
    background-color: #f7f5f2;
    background-image:
        linear-gradient(rgba(247, 245, 242, 0.58), rgba(247, 245, 242, 0.58)),
        url('/brand/pattern-tile.png'),
        radial-gradient(ellipse 90% 60% at 50% -30%, rgba(196, 92, 38, 0.06), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(18, 16, 14, 0.05), transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 0%, rgba(196, 92, 38, 0.04), transparent 50%);
    background-size: auto, 480px 480px, auto, auto, auto;
    background-repeat: no-repeat, repeat, no-repeat, no-repeat, no-repeat;
}

.site-header {
    border-bottom-color: rgba(20, 18, 16, 0.04);
    background: rgba(247, 245, 242, 0.78);
}

.site-nav .nav-link-active {
    position: relative;
}

.site-nav .nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    height: 2px;
    width: 1rem;
    border-radius: 9999px;
    background: linear-gradient(to right, #c45c26, rgba(18,16,14,0.35));
}

.page-eyebrow {
    border-color: rgba(196, 92, 38, 0.15);
    background: rgba(237, 233, 255, 0.7);
    color: #9a4318;
}

.chip-accent {
    border-color: rgba(196, 92, 38, 0.2);
    background: rgba(237, 233, 255, 0.8);
    color: #9a4318;
}

.value-card::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(to right, #c45c26, #6b635a, rgba(196, 92, 38, 0.7));
    opacity: 0.8;
}

.value-card-icon {
    background: #f3e6dc;
    color: #c45c26;
}

.step-number {
    background: #1c1917;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.08), 0 20px 48px -16px rgba(196, 92, 38, 0.22);
}

.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 0 2px 4px rgba(20, 18, 16, 0.04), 0 16px 40px -12px rgba(20, 18, 16, 0.14);
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 85% 20%, rgba(196, 92, 38, 0.35), transparent 55%),
        radial-gradient(ellipse 60% 50% at 15% 80%, rgba(18, 16, 14, 0.18), transparent 50%);
    pointer-events: none;
}

.cta-band > * {
    position: relative;
    z-index: 1;
}

.pricing-card-featured {
    transform: translateY(-0.25rem);
    box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.08), 0 20px 48px -16px rgba(196, 92, 38, 0.22);
    outline: 2px solid rgba(196, 92, 38, 0.3);
    outline-offset: 0;
}

.faq-item[open] {
    border-color: rgba(196, 92, 38, 0.2);
    box-shadow: 0 1px 2px rgba(20, 18, 16, 0.04), 0 8px 24px -8px rgba(20, 18, 16, 0.12);
}

.faq-item[open] .faq-question {
    border-left: 2px solid #c45c26;
    padding-left: 1.375rem;
}

.hero-section-atmosphere {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-section-atmosphere::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 58% 88% at 90% 44%, rgba(196, 92, 38, 0.13) 0%, rgba(18, 16, 14, 0.05) 36%, transparent 66%),
        radial-gradient(ellipse 42% 58% at 74% 54%, rgba(196, 92, 38, 0.07) 0%, transparent 56%);
}

.hero-section-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(247, 245, 242, 0.72) 0%, transparent 14%),
        linear-gradient(108deg, rgba(247, 245, 242, 0.98) 0%, rgba(247, 245, 242, 0.9) 34%, rgba(247, 245, 242, 0.62) 54%, rgba(247, 245, 242, 0.22) 72%, transparent 90%),
        linear-gradient(to bottom, transparent 62%, rgba(247, 245, 242, 0.55) 82%, #f7f5f2 100%);
}

.hero-section-inner {
    position: relative;
    z-index: 1;
    margin-inline: auto;
    width: 100%;
    max-width: var(--max-page, 72rem);
    padding-inline: 1.25rem;
}

@media (min-width: 640px) {
    .hero-section-inner {
        padding-inline: 2rem;
    }
}

.hero-brand-aurora-wrap {
    pointer-events: none;
    position: absolute;
    top: -8%;
    right: -16%;
    bottom: -10%;
    z-index: -1;
    display: none;
    width: min(52%, 40rem);
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 96% 94% at 74% 48%, #000 12%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0.12) 56%, transparent 74%);
    mask-image: radial-gradient(ellipse 96% 94% at 74% 48%, #000 12%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0.12) 56%, transparent 74%);
}

@media (min-width: 1024px) {
    .hero-brand-aurora-wrap {
        display: block;
    }
}

.hero-brand-aurora-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 82% at 66% 50%, rgba(196, 92, 38, 0.16) 0%, rgba(18, 16, 14, 0.05) 44%, transparent 74%);
    filter: blur(32px);
    transform: scale(1.08);
}

.hero-brand-aurora {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 88% center;
    opacity: 0.42;
    mix-blend-mode: soft-light;
    transform: scale(1.2);
    transform-origin: center right;
}

.hero-section-branded {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: transparent;
}

.hero-section-branded::before,
.hero-section-branded::after {
    content: none;
}

.page-atmosphere {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 0;
    width: 100vw;
    transform: translateX(-50%);
    height: min(34rem, 58vh);
}

.page-atmosphere--soft {
    background:
        linear-gradient(180deg, rgba(247, 245, 242, 0.15) 0%, rgba(247, 245, 242, 0.72) 52%, #f7f5f2 88%),
        radial-gradient(ellipse 88% 72% at 50% -6%, rgba(196, 92, 38, 0.07) 0%, transparent 62%);
}

.page-atmosphere--pricing {
    height: min(38rem, 62vh);
    background:
        linear-gradient(180deg, rgba(247, 245, 242, 0.12) 0%, rgba(247, 245, 242, 0.68) 48%, #f7f5f2 86%),
        radial-gradient(ellipse 92% 78% at 50% -4%, rgba(196, 92, 38, 0.09) 0%, transparent 60%),
        var(--page-glow-image, none);
    background-size: auto, auto, cover;
    background-position: center, center, center top;
}

.page-shell {
    position: relative;
    isolation: isolate;
}

.page-hero-atmospheric,
.page-hero.page-hero-atmospheric {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: none;
}

/* Legacy alias — no boxed background */
.page-hero-band {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: none;
}

.page-hero-band::after {
    display: none;
}

.article-card--default-cover .article-card-cover {
    object-fit: cover;
    background: linear-gradient(135deg, rgba(196, 92, 38, 0.12) 0%, rgba(18, 16, 14, 0.08) 100%);
}

.qr-scene-card:not(.qr-scene-card--photo) {
    border-style: dashed;
    border-color: rgba(196, 92, 38, 0.12);
}

.hero-section-qr .stat-value {
    background: #1c1917;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qr-scene-card--photo {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    padding: 0;
}

.qr-scene-card-media {
    display: block;
    height: 6rem;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.qr-scene-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
}

.qr-scene-card-lg .qr-scene-card-media {
    height: 9rem;
}

@media (min-width: 640px) {
    .qr-scene-card-lg .qr-scene-card-media {
        height: 10rem;
    }
}

.qr-scene-card-lg .qr-scene-card-body {
    padding: 1.25rem;
}

.qr-scene-card:hover {
    border-color: rgba(196, 92, 38, 0.15);
}

.qr-spotlight-scroll {
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.qr-spotlight-scroll::-webkit-scrollbar {
    display: none;
}

.qr-spotlight-scroll.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.qr-spotlight-scroll--compact .qr-spotlight-card--compact {
    aspect-ratio: 4 / 3;
    min-height: 10.5rem;
    min-width: 11.5rem;
    max-width: 13.5rem;
}

@media (min-width: 640px) {
    .qr-spotlight-scroll--compact .qr-spotlight-card--compact {
        min-width: 12.5rem;
    }
}

.site-brand-lockup {
    display: block;
    height: 2.75rem;
    width: auto;
    max-width: 11rem;
}

@media (min-width: 640px) {
    .site-brand-lockup {
        height: 3rem;
        max-width: 13rem;
    }
}

@media (min-width: 768px) {
    .site-brand-lockup {
        height: 3.5rem;
        max-width: 15.5rem;
    }
}

/* Phase 2 — tools, pricing, tool chrome, member */

.tool-card--cover {
    padding: 0;
    overflow: hidden;
}

.tool-card-media {
    display: block;
    height: 7.5rem;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.tool-card--cover .tool-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.tool-card-ai::before {
    background: linear-gradient(to right, #c45c26, rgba(18,16,14,0.35));
}

.tool-card-cta {
    color: #c45c26;
}

.tools-group {
    position: relative;
    padding-left: 1rem;
}

.tools-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 3px;
    border-radius: 9999px;
    background: linear-gradient(to bottom, #c45c26, #6b635a);
}

.tools-group-icon[data-group="qr"] {
    background: #f3e6dc;
    color: #c45c26;
}

.pricing-page-shell {
    position: relative;
    isolation: isolate;
}

.hero-section-qr .hero-showcase-qr {
    transform: translateY(0.25rem);
}

@media (min-width: 1024px) {
    .hero-section-qr .hero-showcase-qr {
        transform: translateY(0.35rem);
    }
}

.pricing-grid-main {
    position: relative;
}

.pricing-card {
    position: relative;
}

.pricing-card-featured {
    outline: 2px solid rgba(196, 92, 38, 0.28);
}

.pricing-ribbon {
    position: absolute;
    top: 0;
    right: 1.25rem;
    border-radius: 0 0 0.75rem 0.75rem;
    background: linear-gradient(to right, #c45c26, rgba(18,16,14,0.35));
    padding: 0.35rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.pricing-card-pack {
    border-style: dashed;
}

.tool-chrome--cover {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(20, 18, 16, 0.08);
    background: #fffcf8;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.tool-chrome-banner {
    height: 8.5rem;
    background-size: cover;
    background-position: center;
}

.tool-chrome--cover .tool-chrome-inner {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(20, 18, 16, 0.06);
}

.tool-chrome--cover .tool-chrome-group {
    color: #c45c26;
}

.tool-workspace-surface {
    border-radius: 1rem;
    border: 1px solid rgba(20, 18, 16, 0.08);
    background: linear-gradient(180deg, #fffcf8 0%, #faf8f5 100%);
    box-shadow: 0 1px 2px rgba(20, 18, 16, 0.04), 0 8px 24px -8px rgba(20, 18, 16, 0.12);
    overflow: hidden;
}

.tool-workspace-soon.tool-workspace-inner,
.tool-workspace-inner.tool-workspace-soon {
    min-height: 20rem;
    border: 1px solid rgba(20, 18, 16, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, #fffcf8 0%, #faf8f5 100%);
}

.tool-workspace-soon .tool-canvas-zone {
    background: #f3efe8;
    color: #5c5650;
}

.tool-workspace-soon .tool-canvas-label {
    color: #c45c26;
    border-bottom-color: rgba(20, 18, 16, 0.08);
    background: #faf8f5;
}

.tool-workspace-soon .tool-canvas-empty {
    border-color: rgba(20, 18, 16, 0.12);
    background: #fffcf8;
    color: #8a847c;
}

.member-qr-nav-link.is-active {
    background: #f3e6dc;
    color: #9a4318;
}

.member-qr-quota-bar span {
    background: linear-gradient(to right, #c45c26, rgba(18,16,14,0.35));
}

.member-qr-sidebar-back:hover {
    color: #c45c26;
}

/* Phase 3 — QR studio, auth, member, legacy, presets */

.field:focus {
    border-color: rgba(196, 92, 38, 0.35);
    box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.15);
}

.auth-aside--aurora {
    background-image: linear-gradient(135deg, rgba(20, 18, 16, 0.92) 0%, rgba(20, 18, 16, 0.78) 45%, rgba(196, 92, 38, 0.28) 100%), var(--auth-aurora);
    background-size: cover;
    background-position: center;
}

.auth-benefits li::before {
    color: #6b635a;
}

.member-stat-card {
    position: relative;
    overflow: hidden;
}

.member-stat-card::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(to right, #c45c26, #6b635a, rgba(196, 92, 38, 0.6));
}

.member-stat-card:first-child .member-stat-value {
    background: #1c1917;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qr-studio-type-tab.is-active {
    border-color: rgba(196, 92, 38, 0.2);
    background: rgba(237, 233, 255, 0.6);
    color: #9a4318;
}

.qr-studio-mode.is-active {
    border-color: rgba(196, 92, 38, 0.3);
    background: #f3e6dc;
    color: #9a4318;
}

.qr-studio-preset-card.is-active {
    border-color: rgba(196, 92, 38, 0.35);
    background: rgba(237, 233, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.08), 0 20px 48px -16px rgba(196, 92, 38, 0.22);
}

.qr-studio-preset-card.is-active .qr-studio-preset-name {
    color: #9a4318;
}

.qr-studio-preview {
    box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.08), 0 20px 48px -16px rgba(196, 92, 38, 0.22);
}

.qr-studio-input:focus,
.qr-studio-textarea:focus {
    border-color: rgba(196, 92, 38, 0.3);
    box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.15);
}

.qr-preset-card:hover {
    border-color: rgba(196, 92, 38, 0.15);
    box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.08), 0 20px 48px -16px rgba(196, 92, 38, 0.22);
}

.qr-preset-preview {
    background: rgba(237, 233, 255, 0.4);
    box-shadow: inset 0 0 0 1px rgba(196, 92, 38, 0.1);
}

.qr-preset-cta {
    color: #c45c26;
}

[data-legacy-shell] .tool-workspace-surface .tool-workspace-inner {
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

[data-legacy-shell] .ws-hub-header,
.legacy-tool-root[data-legacy-tool="ai-smart-edit"] .ase-hub-header,
.legacy-tool-root[data-legacy-tool="pdf-tools"] .pt-hub-header {
    background: linear-gradient(135deg, rgba(196, 92, 38, 0.06) 0%, rgba(18, 16, 14, 0.04) 100%);
}

[data-legacy-shell] {
    --tool-input-bg: #fffcf8;
    --tool-panel-bg: #faf8f5;
    --tool-border: rgba(20, 18, 16, 0.08);
    --tool-ink: #141210;
}

[data-legacy-shell] .tool-workspace-surface {
    background: linear-gradient(180deg, #fffcf8 0%, #faf8f5 100%);
}

[data-legacy-shell] .legacy-tool-root :where(
    .step-item,
    .example-item,
    .template-item,
    .template-card,
    .preset-item,
    .preset-card,
    .platform-logo-item,
    .logo-item,
    .mode-option,
    .effect-option,
    .font-option,
    .filter-btn,
    .format-btn:not(.active),
    .card-panel,
    .control-card,
    .settings-block,
    .tool-section-inner,
    .form-control,
    .form-input,
    .form-select
) {
    background: var(--tool-input-bg) !important;
    border-color: var(--tool-border) !important;
}

[data-legacy-shell] .legacy-tool-root :where(
    input:not([type="color"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
    textarea,
    select
) {
    background-color: var(--tool-input-bg) !important;
    border-color: var(--tool-border) !important;
    color: var(--tool-ink) !important;
}

[data-legacy-shell] .legacy-tool-root .panel-section,
[data-legacy-shell] .legacy-tool-root .ws-panel,
[data-legacy-shell] .legacy-tool-root .settings-panel {
    background: var(--tool-panel-bg) !important;
}

/* UI polish — mobile nav, empty states, pagination */
.mobile-nav-link-active {
    background: rgba(237, 233, 255, 0.8);
    color: #9a4318;
    font-weight: 600;
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(20, 18, 16, 0.25);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.site-header[data-open="true"] {
    z-index: 50;
}

.site-header[data-open="true"] .mobile-nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-panel {
    position: relative;
    z-index: 40;
}

.site-header[data-open="true"] .nav-icon-menu {
    display: none;
}

.site-header[data-open="true"] .nav-icon-close {
    display: block;
}

body.nav-open {
    overflow: hidden;
}

.footer-link:hover {
    color: #c45c26;
    transform: translateX(2px);
}

.site-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 1rem;
    border: 1px dashed rgba(20, 18, 16, 0.15);
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(20, 18, 16, 0.04), 0 8px 24px -8px rgba(20, 18, 16, 0.12);
}

.site-empty-icon {
    display: flex;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #f3e6dc;
    color: #c45c26;
}

.site-empty-title {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #141210;
}

.site-empty-lead {
    margin-top: 0.5rem;
    max-width: 28rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #6b6560;
}

.site-pagination {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.site-pagination-item {
    display: inline-flex;
    height: 2.25rem;
    min-width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid rgba(20, 18, 16, 0.1);
    background: #fff;
    padding-inline: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b6560;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.site-pagination-item:hover {
    border-color: rgba(196, 92, 38, 0.2);
    color: #141210;
}

.site-pagination-item.is-active {
    border-color: #c45c26;
    background: #c45c26;
    color: #fff;
}

.site-pagination-item.is-disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.member-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .member-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.tool-card-cta {
    transition: transform 0.2s ease, color 0.2s ease;
}

.tool-card:hover .tool-card-cta {
    transform: translateX(2px);
    color: #9a4318;
}

.auth-shell-single {
    display: flex;
    width: 100%;
    max-width: 28rem;
    justify-content: center;
    margin-inline: auto;
}

.qr-studio-mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(20, 18, 16, 0.08);
    background: rgba(247, 245, 242, 0.95);
    padding: 0.75rem 1rem;
    box-shadow: 0 -8px 24px -8px rgba(20, 18, 16, 0.12);
    backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
    .qr-studio-mobile-bar {
        display: none;
    }
}

.qr-studio-page {
    padding-bottom: 6rem;
}

@media (min-width: 1024px) {
    .qr-studio-page {
        padding-bottom: 4rem;
    }
}

.pay-method-option {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(20, 18, 16, 0.1);
    background: #f7f5f2;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pay-method-option:has(:checked) {
    border-color: rgba(196, 92, 38, 0.45);
    background: rgba(245, 232, 223, 0.6);
}

.pay-method-option:focus-within {
    box-shadow: 0 0 0 2px #f7f5f2, 0 0 0 4px rgba(196, 92, 38, 0.25);
}

/* Auth pages */
.auth-page-shell {
    position: relative;
    isolation: isolate;
}

.auth-mobile-banner {
    border-radius: 1rem;
    border: 1px solid rgba(196, 92, 38, 0.12);
    background: linear-gradient(135deg, rgba(237, 233, 255, 0.8) 0%, #fff 55%, #f7f5f2 100%);
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(20, 18, 16, 0.04), 0 8px 24px -8px rgba(20, 18, 16, 0.1);
}

.auth-mobile-eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(196, 92, 38, 0.15);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.125rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a4318;
}

.auth-mobile-lead {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #6b6560;
}

.auth-mobile-benefits {
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #6b6560;
}

.auth-mobile-benefits li {
    display: flex;
    gap: 0.5rem;
}

.auth-mobile-benefits li::before {
    content: '✓';
    flex-shrink: 0;
    font-weight: 600;
    color: #c45c26;
}

.auth-card {
    box-shadow: 0 1px 2px rgba(20, 18, 16, 0.04), 0 16px 40px -12px rgba(20, 18, 16, 0.14);
}

.auth-link:hover {
    color: #9a4318;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-checkbox {
    height: 1rem;
    width: 1rem;
    border-radius: 0.25rem;
    border-color: rgba(20, 18, 16, 0.2);
    color: #c45c26;
}

@media (min-width: 1024px) {
    .auth-mobile-banner {
        display: none;
    }
}

.article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 92, 38, 0.15);
    box-shadow: 0 1px 2px rgba(20, 18, 16, 0.04), 0 16px 40px -12px rgba(20, 18, 16, 0.14);
}

.article-back:hover {
    color: #9a4318;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-cover--default {
    max-height: 18rem;
    object-fit: cover;
}

.member-qr-page-shell {
    position: relative;
    isolation: isolate;
}

.tool-page {
    position: relative;
}

@media (max-width: 1023px) {
    .qr-studio-settings {
        order: 1;
    }

    .qr-studio-main {
        order: 2;
    }

    .qr-studio-type-tabs,
    .qr-studio-modes {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .qr-studio-type-tabs::-webkit-scrollbar,
    .qr-studio-modes::-webkit-scrollbar {
        display: none;
    }

    .qr-studio-type-tab {
        flex: 0 0 auto;
        min-width: 5.5rem;
    }

    .qr-studio-mode {
        flex: 0 0 auto;
        min-width: 6.5rem;
    }
}

.btn:focus-visible,
.nav-link:focus-visible,
.mobile-nav-link:focus-visible,
.footer-link:focus-visible,
.tool-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #f7f5f2, 0 0 0 4px rgba(196, 92, 38, 0.35);
}

.site-footer {
    position: relative;
    margin-top: 4rem;
    overflow: visible;
    border-top: 1px solid rgba(20, 18, 16, 0.1);
    background: rgba(240, 236, 230, 0.6);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 92, 38, 0.28), transparent);
    pointer-events: none;
}

.site-footer-cta {
    border-bottom: 1px solid rgba(20, 18, 16, 0.08);
    background: linear-gradient(135deg, rgba(196, 92, 38, 0.08) 0%, rgba(255, 252, 248, 0.88) 45%, rgba(240, 236, 230, 0.72) 100%);
}

.site-footer-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .site-footer-cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.site-footer-cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c45c26;
}

.site-footer-cta-title {
    margin-top: 0.25rem;
    font-family: Fraunces, "Noto Serif SC", serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #141210;
}

@media (min-width: 640px) {
    .site-footer-cta-title {
        font-size: 1.5rem;
    }
}

.site-footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(20, 18, 16, 0.1);
    border-radius: 9999px;
    background: rgba(255, 252, 248, 0.95);
    color: #141210;
    box-shadow: 0 10px 24px rgba(20, 18, 16, 0.1);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.back-to-top:not([hidden]) {
    display: inline-flex;
}

.back-to-top:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 92, 38, 0.25);
    color: #c45c26;
}

.back-to-top:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #f7f5f2, 0 0 0 4px rgba(196, 92, 38, 0.35);
}

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

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.5rem 1rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border-radius: 0.5rem;
    background: #fffcf8;
    color: #141210;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(20, 18, 16, 0.12);
    outline: none;
    box-shadow: 0 0 0 2px #f7f5f2, 0 0 0 4px rgba(196, 92, 38, 0.35);
}

.legal-prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.site-empty-links {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.site-empty-link {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(20, 18, 16, 0.1);
    background: rgba(255, 252, 248, 0.8);
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b6560;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.site-empty-link:hover {
    border-color: rgba(196, 92, 38, 0.2);
    color: #c45c26;
}

.contact-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
        align-items: start;
    }
}

.contact-card {
    padding: 1.5rem;
}

.contact-card-icon {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #f3e6dc;
    color: #c45c26;
}

.contact-card-title {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #141210;
}

.contact-card-lead {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #6b6560;
}

.contact-email-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: #c45c26;
    text-decoration: none;
}

.contact-email-link:hover {
    text-decoration: underline;
}

.contact-card-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.625;
    color: #8a847c;
}

.contact-topics {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .contact-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .contact-topics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.contact-topic {
    padding: 1.25rem;
}

.contact-topic-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #141210;
}

.contact-topic-body {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #6b6560;
}

.contact-quick-links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.member-support-card {
    margin-top: 2rem;
    overflow: hidden;
    border-color: rgba(196, 92, 38, 0.15);
    background: linear-gradient(135deg, rgba(237, 233, 255, 0.55) 0%, #fffcf8 45%, rgba(240, 236, 230, 0.45) 100%);
}

.member-support-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .member-support-card-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.member-support-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c45c26;
}

.member-support-title {
    margin-top: 0.25rem;
    font-family: Fraunces, "Noto Serif SC", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #141210;
}

.member-support-lead {
    margin-top: 0.5rem;
    max-width: 36rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #6b6560;
}

.member-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pay-support-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 18, 16, 0.1);
    font-size: 0.875rem;
    color: #8a847c;
}

/* Header nav — multilingual compact layout */
.nav-link-trigger {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.nav-flyout {
    width: min(12rem, calc(100vw - 2.5rem));
    padding: 0.375rem;
}

.nav-flyout--wide {
    width: min(48rem, calc(100vw - 2.5rem));
    padding: 1rem;
}

.nav-flyout--account {
    right: 0;
    left: auto;
    width: min(11rem, calc(100vw - 2.5rem));
}

.site-header-actions .group-panel {
    left: auto;
    right: 0;
    transform: translateY(0.25rem);
}

.site-header-actions .group-nav:hover .group-panel,
.site-header-actions .group-nav:focus-within .group-panel {
    transform: translateY(0);
}

.nav-flyout-link {
    display: block;
    border-radius: 0.625rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b6560;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-flyout-link:hover,
.nav-flyout-link.is-active {
    background: rgba(237, 233, 255, 0.55);
    color: #141210;
}

.nav-flyout-link--button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.nav-flyout-form {
    margin: 0;
}

.locale-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    border-radius: 9999px;
    border: 1px solid rgba(20, 18, 16, 0.1);
    background: rgba(250, 248, 245, 0.92);
    padding: 0.125rem;
}

.locale-switch-form {
    margin: 0;
}

.locale-switch-btn {
    border: 0;
    border-radius: 9999px;
    background: transparent;
    padding: 0.3125rem 0.5625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #6b6560;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.locale-switch-btn:hover {
    color: #141210;
}

.locale-switch-btn.is-active {
    background: #fff;
    color: #9a4318;
    box-shadow: 0 1px 2px rgba(20, 18, 16, 0.06);
}

.locale-switch--compact .locale-switch-btn {
    min-width: 2rem;
    padding-inline: 0.4375rem;
}

html[lang="zh-CN"] .site-nav .nav-link,
html[lang="zh-CN"] .nav-link-trigger {
    font-size: 0.8125rem;
}

@media (min-width: 1280px) {
    html[lang="zh-CN"] .site-nav .nav-link,
    html[lang="zh-CN"] .nav-link-trigger {
        font-size: 0.875rem;
    }
}
