/* ==========================================================================
   QReative - styles-dynamic.css
   Design: Dark Craft / Creative Tool
   Fonts: Host Grotesk (headings) + Source Sans 3 (body)
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    --bg: #080808;
    --bg-card: #111111;
    --bg-elevated: #161616;
    --text-primary: #F5F4F0;
    --text-secondary: #888882;
    --text-muted: #4A4A46;
    --accent: #FF4500;
    --accent-warm: #FF7040;
    --accent-glow: rgba(255, 69, 0, 0.15);
    --border: rgba(255, 255, 255, 0.07);
    --border-bright: rgba(255, 255, 255, 0.13);
    --error: #EF4444;
    --success: #22C55E;
    --font-head: "Host Grotesk", "Host Grotesk Fallback", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    --content: 1200px;
    --font-body: "Source Sans 3", "Source Sans 3 Fallback", "Segoe UI", Calibri, Arial, sans-serif;
}

/* Metric-matched fallbacks so font-display: swap does not shift layout (computed against Arial) */
@font-face {
    font-family: "Host Grotesk Fallback";
    src: local("Arial");
    size-adjust: 106%;
    ascent-override: 95.8%;
    descent-override: 29.7%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Source Sans 3 Fallback";
    src: local("Arial");
    size-adjust: 93.9%;
    ascent-override: 109%;
    descent-override: 42.6%;
    line-gap-override: 0%;
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.005em; /* dark ground: a hair of positive tracking */
    font-optical-sizing: auto;
    background-color: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Dot grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
    pointer-events: none;
}

/* Remove old animated blob */
.bg-animation {
    display: none;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    padding: 0 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header.scrolled {
    background: var(--bg);
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: var(--content);
    margin: 0 auto;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo:hover,
.logo:hover .logo-img {
    transform: none;
}

.logo-img {
    height: 44px;
    /* sepia on white produces hue ~60°; rotate by 316° lands on hue 16° = #FF4500 orange */
    filter: brightness(0) invert(1) sepia(1) saturate(4000%) hue-rotate(316deg) brightness(1.05);
    transition: filter 0.2s;
}

.logo:hover .logo-img {
    filter: brightness(0) invert(1) sepia(1) saturate(4000%) hue-rotate(316deg) brightness(1.2);
}

.logo-text {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    display: none;
}

.cta-button {
    background: var(--accent);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-warm);
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-bright);
    padding: 12px 24px 20px;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
}

.nav-drawer.open {
    display: flex;
}

.nav-drawer .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    color: var(--text-primary);
}

.nav-drawer .cta-button {
    margin-top: 12px;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    display: block;
}


/* ==========================================================================
   4. HERO (compact, tool-first)
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    background: var(--accent);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

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

.hero {
    position: relative;
    z-index: 1;
    max-width: var(--content);
    margin: 0 auto;
    padding: 96px 32px 28px;
}

.hero-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.hero-proof {
    justify-content: center;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 62ch;
    margin: 0 auto 14px;
}

.hero-proof {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-proof {
    column-gap: 18px;
}

.hero-proof li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    margin-right: 8px;
    vertical-align: middle;
}

.hero-proof .trust-number {
    color: var(--text-secondary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   5. TOOL LAYOUT
   ========================================================================== */

.tool {
    position: relative;
    z-index: 1;
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 32px 64px;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

@media (min-width: 1024px) {
    .tool-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    }
}

.tool-controls > * + * {
    margin-top: 16px;
}

.panel-primary {
    border-color: var(--border-bright);
}

.step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 4px;
}

.optional {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-left: 8px;
}

.btn-generate {
    margin-top: 14px;
    font-size: 1rem;
}

.field-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.field-error {
    color: #FF8A65;
    font-size: 0.9375rem;
    margin-top: 8px;
    line-height: 1.5;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-primary);
    min-height: 32px;
}

/* Optional groups: native disclosure */
.panel-customize .opt {
    border-top: 1px solid var(--border);
}

.panel-customize .opt:last-child {
    border-bottom: 1px solid var(--border);
}

.opt summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    min-height: 44px;
}

.opt summary::-webkit-details-marker {
    display: none;
}

.opt summary::after {
    content: '+';
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s;
}

.opt[open] summary::after {
    transform: rotate(45deg);
}

.opt-body {
    padding: 4px 0 20px;
}

.upload-zone {
    border: 1px dashed var(--border-bright);
    border-radius: 4px;
    padding: 18px 16px;
    text-align: left;
    background: var(--bg-elevated);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.upload-title {
    display: block;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4px;
}

.upload-meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Preview */
.preview-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
}

.preview-empty-title {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.0625rem;
}

.preview-empty-sub {
    margin-top: 6px;
    font-size: 0.9375rem;
}

.qr-wrap {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.qr-wrap canvas {
    max-width: 200px;
    height: auto !important;
}

#qr-canvas {
    text-align: center;
    width: 100%;
}

.preview-caption {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.download-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

.download-row .btn-primary {
    width: auto;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.download-row .label {
    margin-bottom: 6px;
}

.preview-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.preview-facts dt {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.preview-facts dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.preview-tip {
    margin-top: 14px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.preview-counter {
    margin-top: 12px;
    font-family: var(--font-head);
    font-size: 1.0625rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.trust-number-full {
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    transition: transform 0.3s ease;
}

.trust-number-full.bump {
    transform: scale(1.12);
}

.preview-counter-next {
    color: var(--text-secondary);
    font-weight: 500;
}

.preview-note {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   6. SECTION LABELS
   ========================================================================== */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* ==========================================================================
   7. CONTAINER & GRID
   ========================================================================== */

.container {
    position: relative;
    z-index: 1;
    max-width: var(--content);
    margin: 0 auto;
    padding: 80px 32px;
}

.grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   8. PANELS
   ========================================================================== */

.panel {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 28px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.3s;
}

.panel:hover {
    border-color: var(--border-bright);
}

.panel:hover::before {
    background: var(--accent);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.panel-icon {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-icon svg {
    color: var(--accent) !important;
}

.panel-title {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

/* ==========================================================================
   9. CONTENT TYPE BUTTONS
   ========================================================================== */

.content-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .content-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content-type-btn {
    appearance: none;
    -webkit-appearance: none;
    min-height: 44px;
    padding: 10px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-secondary);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.content-type-btn:focus-visible,
.color-preset:focus-visible,
.faq-question:focus-visible,
.btn-primary:focus-visible,
.cta-button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.content-type-btn:hover {
    border-color: rgba(255, 69, 0, 0.4);
    color: var(--accent);
    background: rgba(255, 69, 0, 0.06);
}

.content-type-btn.active {
    background: rgba(255, 69, 0, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.content-type-icon {
    display: none;
}

/* ==========================================================================
   10. UPLOAD ZONE
   ========================================================================== */

.upload-zone:hover {
    border-color: rgba(255, 69, 0, 0.5);
    background: rgba(255, 69, 0, 0.04);
}

.logo-preview-box {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.logo-preview-img {
    max-height: 96px;
    max-width: 100%;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.remove-logo-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--error);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==========================================================================
   11. COLOR PRESETS
   ========================================================================== */

.color-presets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .color-presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.color-preset {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    width: 100%;
    height: 42px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.color-preset:hover {
    transform: scale(1.04);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-preset.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.2);
}

.color-preset.active::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

/* ==========================================================================
   12. PREVIEW CONTAINER
   ========================================================================== */

.preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: var(--bg-elevated);
    border-radius: 4px;
    border: 1px dashed var(--border-bright);
    padding: 24px;
    position: relative;
}

/* ==========================================================================
   13. FORM ELEMENTS
   ========================================================================== */

.input,
.select,
.textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.12);
    background: var(--bg-elevated);
}

.select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23888882' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.textarea {
    resize: vertical;
    min-height: 96px;
}

.label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Range input */
input[type="range"] {
    width: 100%;
    height: 4px;
    background: var(--border-bright);
    border-radius: 4px;
    outline: none;
    margin-top: 8px;
    -webkit-appearance: none;
    appearance: none;
    accent-color: var(--accent);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
}

/* Color input */
input[type="color"] {
    width: 100%;
    height: 44px;
    border-radius: 4px;
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--bg-elevated);
    padding: 3px;
}

/* Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ==========================================================================
   14. BUTTONS
   ========================================================================== */

.btn-primary {
    width: 100%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover {
    background: var(--accent-warm);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   16. FEATURES SECTION
   ========================================================================== */

.features-section {
    position: relative;
    z-index: 1;
    max-width: var(--content);
    margin: 0 auto;
    padding: 64px 32px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}

.section-header .section-label {
    justify-content: center;
}

.section-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    line-height: 1.05;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border);
}

.feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 48px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
    background: none;
    transition: border-color 0.25s;
}

@media (min-width: 768px) {
    .feature-card {
        grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
    }
}

.feature-card:hover {
    border-bottom-color: var(--border-bright);
}

.feature-icon {
    display: none;
}

.feature-title {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: -0.015em;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    max-width: 62ch;
}

/* ==========================================================================
   17. USE CASES STRIP (one-line ticker)
   ========================================================================== */

.use-cases-strip {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    padding: 22px 0;
}

.strip-inner {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.strip-head {
    flex-shrink: 0;
}

.strip-head .section-label {
    margin-bottom: 6px;
}

.strip-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    white-space: nowrap;
    margin: 0;
}

.ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    list-style: none;
    display: flex;
    gap: 40px;
    width: max-content;
    animation: tickerScroll 48s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
    animation-play-state: paused;
}

.ticker-track li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
}

.ticker-track li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    flex-shrink: 0;
    align-self: center;
}

.ticker-track strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.ticker-track span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        gap: 10px 28px;
    }
    .ticker {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .ticker-track li[aria-hidden="true"] {
        display: none;
    }
}

/* ==========================================================================
   17b. GUIDES
   ========================================================================== */

.guides-section {
    position: relative;
    z-index: 1;
    max-width: var(--content);
    margin: 0 auto;
    padding: 64px 32px;
}

.guides-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.guides-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px 48px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .guides-list li {
        grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
    }
}

.guides-list a {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.guides-list a:hover {
    color: var(--accent);
}

.guides-list span {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 62ch;
}


/* ==========================================================================
   17c. GUIDE PAGES
   ========================================================================== */

.guide {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 96px 32px 64px;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb span[aria-hidden] {
    margin: 0 6px;
}

.guide h1 {
    font-family: var(--font-head);
    font-size: clamp(1.875rem, 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.guide-lede {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.guide-lede code,
.guide p code,
.guide td code,
.guide li code {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--text-primary);
}

.guide-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.guide h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 40px 0 12px;
}

.guide h3 {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 8px;
}

.guide p,
.guide li {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.guide p {
    margin-bottom: 16px;
}

.guide strong {
    color: var(--text-primary);
    font-weight: 600;
}

.guide a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.guide a:hover {
    color: var(--accent-warm);
}

.guide ul,
.guide ol {
    margin: 0 0 18px 22px;
}

.guide li {
    margin-bottom: 8px;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 20px;
    font-size: 0.9375rem;
}

.guide-table th,
.guide-table td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.5;
}

.guide-table th {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guide-table td:first-child {
    color: var(--text-primary);
}

.guide-code {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px 18px;
    margin: 8px 0 18px;
    overflow-x: auto;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-primary);
}

.guide-code code {
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
}

.guide-cta {
    margin: 40px 0 8px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
}

.guide-cta-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.guide-cta p {
    margin-bottom: 14px;
}

.guide-cta-btn {
    display: inline-block;
    width: auto;
    padding: 12px 22px;
    text-decoration: none;
    font-size: 0.9375rem;
}

.guide-cta-btn:hover {
    color: #ffffff;
}

.guide-faq h2 {
    margin-top: 40px;
}

.related {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.related h2 {
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.related ul {
    list-style: none;
}

.related li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.related a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.related a:hover {
    color: var(--accent);
}

/* ==========================================================================
   18. FAQ SECTION
   ========================================================================== */

.faq-section {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto;
    padding: 64px 32px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--border-bright);
}

.faq-item h3 {
    margin: 0;
}

.faq-question {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: background 0.2s;
    list-style: none;
    user-select: none;
}

.faq-question:hover {
    background: var(--bg-elevated);
}

.faq-icon {
    color: var(--accent);
    font-size: 20px;
    transition: transform 0.25s;
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer-content {
    padding: 16px 22px 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   20. FOOTER
   ========================================================================== */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 32px 0 28px;
}

.footer-inner {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 32px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding-right: 84px; /* clearance for the floating contact button */
}

.footer-brand-line {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.footer-brand {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.footer-brand:hover {
    color: var(--accent-warm);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-note {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ==========================================================================
   21. CONTACT POPUP
   ========================================================================== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-elevated);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.7);
    transition: transform 0.25s;
}

.popup-overlay.active .popup {
    transform: translate(-50%, -50%) scale(1);
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    line-height: 1;
}

.popup-close:hover {
    background: var(--border-bright);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.popup-header {
    text-align: left;
    margin-bottom: 28px;
}

.popup-title {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.popup-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 96px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.form-submit:hover {
    background: var(--accent-warm);
}

/* ==========================================================================
   22. FLOATING CONTACT BUTTON
   ========================================================================== */

.floating-contact {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    z-index: 999;
    animation: none;
    border: none;
}

.floating-contact:hover {
    background: var(--accent-warm);
    transform: scale(1.1);
}

.floating-contact svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

/* ==========================================================================
   23. UTILITIES
   ========================================================================== */

.hidden {
    display: none;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

.space-y-3 > * + * {
    margin-top: 12px;
}

.space-y-6 > * + * {
    margin-top: 24px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.sticky {
    position: sticky;
    top: 76px;
}

@media (max-width: 1024px) {
    .sticky {
        position: relative;
        top: 0;
    }
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-md {
    width: 22px;
    height: 22px;
}

.icon-lg {
    width: 28px;
    height: 28px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   24. RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header {
        padding: 0 20px;
    }

    .hero {
        padding: 76px 20px 16px;
    }

    .hero-title {
        font-size: 1.625rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-proof {
        font-size: 0.8125rem;
    }

    .step-head {
        margin-bottom: 14px;
    }

    .content-type-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 14px;
    }

    .content-type-btn {
        min-height: 40px;
        padding: 8px 4px;
        font-size: 0.6875rem;
    }

    #qr-data {
        min-height: 72px;
    }

    .tool {
        padding: 0 20px 48px;
    }

    .footer-inner {
        padding: 0 20px;
    }

    .strip-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 0 20px;
    }

    .preview-facts {
        grid-template-columns: 1fr 1fr;
    }

    .guide {
        padding: 80px 20px 48px;
    }

    .guide-table {
        display: block;
        overflow-x: auto;
    }

    .footer-row {
        padding-right: 0;
        padding-bottom: 56px;
    }

    .download-row {
        grid-template-columns: 1fr;
    }

    .download-row .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 48px 20px;
    }

    .panel {
        padding: 20px;
    }

    .features-section,
    .guides-section {
        padding: 56px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .faq-section {
        padding: 56px 20px;
    }

    .footer {
        padding: 48px 20px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta-row {
        gap: 12px;
    }
}
