/* ==========================================================================
   FASTCOPY — HOME PAGE STYLES (MOBILE-FIRST ARCHITECTURE)
   Typography: Space Grotesk (headings), IBM Plex Sans (body), 
   JetBrains Mono (codes/counters). Phosphor Icons throughout.
   Cohesive Obsidian Slate + Industrial Safety Amber palette.
   ========================================================================== */

:root {
    /* Palette: Obsidian Slate Canvas & Surfaces */
    --canvas: #0b0d11;
    --surface-1: #12151c;
    --surface-2: #181d26;
    --surface-3: #202734;
    --surface-hover: #262e3d;

    /* Hairline Precision Borders */
    --border-subtle: #242c3b;
    --border-hover: #374359;
    --border-accent: rgba(245, 158, 11, 0.4);

    /* Text */
    --text-primary: #f3f5f8;
    --text-secondary: #939fb2;
    --text-muted: #606d82;

    /* Industrial Amber Accent */
    --amber: #f59e0b;
    --amber-hover: #fbb73d;
    --amber-dark: #d97706;
    --amber-depth: #b45309;
    --amber-wash: rgba(245, 158, 11, 0.12);
    --amber-wash-border: rgba(245, 158, 11, 0.3);

    /* Status */
    --success: #10b981;
    --success-wash: rgba(16, 185, 129, 0.12);
    --danger: #f43f5e;
    --danger-wash: rgba(244, 63, 94, 0.12);

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Soft Diffused Shadows */
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
    --shadow-elevated: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--canvas);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* Mobile-First Outer Layout Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 3.5vw, 1rem);
}

/* ==========================================================================
   1. HEADER
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 17, 0.94);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    gap: 0.5rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--amber);
    color: #0b0d11;
    border-radius: 6px;
    box-shadow: 0 2px 0 var(--amber-depth);
    font-size: 16px;
}

/* Right Status Pill Badge (Guaranteed Non-Wrapping on narrow mobile) */
.header-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    flex-shrink: 0;
}

/* ==========================================================================
   2. HERO
   ========================================================================== */

.hero-section {
    padding: 2rem 0 1.25rem;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 1.625rem; /* 26px on mobile */
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-align: left;
    margin-bottom: 0.5rem;
}

.hero-headline .accent-text {
    color: var(--amber);
}

.hero-subtext {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: left;
    max-width: 58ch;
}

/* ==========================================================================
   3. MAIN CARD (CREATE VS RETRIEVE)
   ========================================================================== */

.main-tool-section {
    padding: 0.75rem 0 3.5rem;
}

.main-card-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Desktop Centering Constraint */
@media (min-width: 640px) {
    .main-card-wrapper {
        max-width: 580px;
    }
}

.main-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    width: 100%;
}

/* Top Mode Switcher (Create Clip vs Enter Code) */
.mode-toggle {
    display: flex;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-subtle);
    padding: 4px;
}

.mode-tab {
    flex: 1;
    min-height: 44px;
    padding: 0.65rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.15s ease;
    user-select: none;
}

.mode-tab.active {
    background: var(--surface-3);
    color: var(--amber);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--border-subtle);
}

.card-body-padding {
    padding: 1.25rem;
}

/* ==========================================================================
   MODE A: "CREATE CLIP"
   ========================================================================== */

/* Sub-tabs: Text / Link / File */
.sub-tabs {
    display: flex;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 1rem;
}

.sub-tab {
    flex: 1;
    min-height: 42px;
    padding: 0.45rem 0.35rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.12s ease;
    user-select: none;
}

.sub-tab.active {
    background: var(--surface-3);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Textarea / Inputs */
.tool-textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tool-textarea:focus,
.tool-input:focus,
.tool-select:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.tool-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* File Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-subtle);
    border-radius: 10px;
    padding: 1.75rem 1rem;
    text-align: center;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--amber);
    background: var(--amber-wash);
}

.upload-zone i {
    font-size: 2rem;
    color: var(--amber);
    margin-bottom: 0.5rem;
    display: block;
}

.upload-zone-text {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.upload-zone-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.selected-file-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding: 0.3rem 0.65rem;
    background: var(--surface-3);
    border: 1px solid var(--amber-wash-border);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.785rem;
    color: var(--amber);
}

/* Single Row Combined Expiry Dropdown + Compact Privacy Note */
.tool-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.85rem 0 1rem;
    flex-wrap: nowrap;
}

.expiry-dropdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.expiry-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.tool-select {
    padding: 0.35rem 0.55rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.privacy-inline-note {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.725rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.privacy-inline-note i {
    color: var(--amber);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Full-Width Tactile Buttons */
.btn-primary-full {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 8px;
    cursor: pointer;
    background: var(--amber);
    color: #0b0d11;
    border: 1px solid var(--amber-dark);
    box-shadow: 0 2px 0 var(--amber-depth), 0 3px 8px rgba(245, 158, 11, 0.2);
    transition: all 0.12s ease;
    user-select: none;
}

.btn-primary-full:hover:not(:disabled) {
    background: var(--amber-hover);
    transform: translateY(-1px);
    box-shadow: 0 3px 0 var(--amber-depth), 0 5px 12px rgba(245, 158, 11, 0.28);
}

.btn-primary-full:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 0 0 var(--amber-depth);
}

.btn-primary-full:disabled {
    background: var(--surface-2);
    color: var(--text-muted);
    border-color: var(--border-subtle);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Result Block Within the Same Card */
.result-block {
    background: var(--surface-2);
    border-top: 1px solid var(--border-subtle);
    padding: 1.25rem;
    text-align: center;
}

/* Mobile layout: Vertical Stack */
.result-grid-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.result-qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-canvas-holder {
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    display: inline-block;
}

.qr-canvas-holder canvas {
    display: block;
}

.result-info-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-code-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

/* Separated 4-Digit Boxes */
.digit-boxes-row {
    display: flex;
    gap: clamp(5px, 2vw, 8px);
    justify-content: center;
    margin-bottom: 0.85rem;
}

.digit-pill {
    width: clamp(38px, 12vw, 48px);
    height: clamp(48px, 15vw, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    font-weight: 700;
    color: var(--amber);
    background: var(--surface-1);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.share-url-row {
    display: flex;
    width: 100%;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    align-items: stretch;
}

.share-url-input {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.5rem 0.65rem;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
}

.btn-copy-tactile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    background: var(--surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 0 #07090c;
    transition: all 0.12s ease;
    user-select: none;
    flex-shrink: 0;
}

.btn-copy-tactile:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.btn-copy-tactile:active {
    transform: translateY(2px);
    box-shadow: none;
}

.countdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: var(--surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--amber);
}

.btn-create-another {
    display: block;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px dashed var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.12s ease;
}

.btn-create-another:hover {
    border-color: var(--amber-border);
    color: var(--amber);
}

/* Desktop Breakpoint for Result Block (2-Column Row) */
@media (min-width: 640px) {
    .result-grid-layout {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .result-info-col {
        align-items: flex-start;
    }

    .digit-boxes-row {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   MODE B: "ENTER CODE"
   ========================================================================== */

.enter-code-container {
    text-align: center;
}

.enter-code-label {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.digit-inputs-group {
    display: flex;
    gap: clamp(5px, 2vw, 8px);
    justify-content: center;
    margin-bottom: 0.85rem;
}

.digit-input-box {
    width: clamp(40px, 13vw, 54px);
    height: clamp(50px, 16vw, 62px);
    text-align: center;
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    font-weight: 700;
    color: var(--amber);
    background: var(--surface-2);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    caret-color: var(--amber);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.digit-input-box:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.secondary-scan-option {
    margin-bottom: 1.15rem;
}

.btn-scan-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
}

.btn-scan-qr:hover {
    color: var(--amber);
}

.btn-scan-qr i {
    font-size: 1.05rem;
}

/* In-Place Resolved Single Clip Display */
.resolved-clip-inplace {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    text-align: left;
}

.resolved-inplace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.resolved-inplace-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.45rem;
    background: var(--surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.resolved-inplace-time {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    color: var(--text-muted);
}

.resolved-inplace-content {
    background: #0d1015;
    border-radius: 6px;
    padding: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.resolved-inplace-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Calm Expired / Missing Note */
.resolved-expired-notice {
    margin-top: 1rem;
    padding: 1.25rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    text-align: center;
}

.resolved-expired-notice i {
    font-size: 1.5rem;
    color: var(--amber);
    margin-bottom: 0.4rem;
    display: block;
}

.resolved-expired-notice h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.resolved-expired-notice p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ==========================================================================
   4. "WHAT IS FASTCOPY?" EXPLAINER SECTION
   Visually quieter than hero, more whitespace, no heavy borders.
   ========================================================================== */

.explainer-section {
    padding: 3.5rem 0 3rem;
    border-top: 1px solid var(--border-subtle);
}

.explainer-header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.explainer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.explainer-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Mobile: Vertical List | Desktop: 3-Column Horizontal Row */
.explainer-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .explainer-steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.explainer-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.step-num-pill {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-details h3 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.step-details p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   5. FAQ SECTION (ACCORDION)
   ========================================================================== */

.faq-section {
    padding: 3rem 0 3.5rem;
    border-top: 1px solid var(--border-subtle);
}

.faq-header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.faq-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.faq-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

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

.faq-item.active {
    border-color: var(--amber-wash-border);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.15rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
    gap: 1rem;
}

.faq-trigger .faq-chevron {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.15s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--amber);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0, 1, 0, 1), padding 0.25s ease;
    padding: 0 1.15rem;
}

.faq-item.active .faq-content {
    max-height: 250px;
    padding: 0 1.15rem 1rem;
    transition: max-height 0.25s cubic-bezier(1, 0, 1, 0), padding 0.25s ease;
}

.faq-content p {
    font-size: 0.845rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */

.site-footer {
    padding: 2.5rem 0 2rem;
    background: #08090c;
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

.footer-powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78125rem;
    color: var(--text-muted);
}

.footer-powered-by a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
}

.footer-powered-by a:hover {
    color: var(--amber);
}

.footer-powered-by .pg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    display: inline-block;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-brand i {
    color: var(--amber);
}

.footer-tools-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
    max-width: 820px;
}

.footer-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-tools-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.25rem;
}

.footer-tool-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.15s ease;
}

.footer-tool-link:hover {
    color: var(--amber);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.15s ease;
}

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

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.71875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CAMERA SCANNER MODAL (QR SCAN)
   ========================================================================== */

.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 9, 12, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.camera-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-subtle);
}

.camera-body {
    padding: 1.25rem;
    text-align: center;
}

.camera-video-container {
    width: 100%;
    height: 260px;
    background: #000000;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.camera-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   DESKTOP BREAKPOINTS (SCALING UP)
   ========================================================================== */

@media (min-width: 768px) {
    .hero-section {
        padding: 3rem 0 1.5rem;
    }

    .hero-headline {
        font-size: 2.125rem; /* ~34px */
    }

    .hero-subtext {
        font-size: 1rem;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS: LOW, MEDIUM, HIGH TIERS (ui-ux-pro-max guidelines)
   ========================================================================== */

/* Low Devices (<= 374px) — iPhone SE 1st gen, small budget Androids */
@media (max-width: 374px) {
    .site-header .header-inner {
        height: 52px;
        gap: 0.25rem;
    }

    .brand-link {
        font-size: 1.1rem;
        gap: 0.35rem;
    }

    .brand-badge {
        width: 25px;
        height: 25px;
        font-size: 14px;
        border-radius: 5px;
    }

    .header-status-badge {
        font-size: 0.66rem;
        padding: 0.16rem 0.4rem;
        gap: 0.25rem;
    }

    .hero-section {
        padding: 1.25rem 0 0.85rem;
    }

    .hero-headline {
        font-size: 1.35rem;
        line-height: 1.22;
    }

    .hero-subtext {
        font-size: 0.825rem;
    }

    .card-body-padding {
        padding: 0.85rem 0.75rem;
    }

    .mode-tab {
        font-size: 0.85rem;
        padding: 0.55rem 0.35rem;
        gap: 0.3rem;
    }

    .sub-tabs {
        margin-bottom: 0.75rem;
    }

    .sub-tab {
        font-size: 0.75rem;
        padding: 0.4rem 0.25rem;
    }

    .tool-meta-row {
        flex-wrap: wrap;
        gap: 0.45rem;
        align-items: flex-start;
    }

    .share-url-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-url-row .btn-copy-tactile {
        width: 100%;
        justify-content: center;
    }

    .result-block {
        padding: 1rem 0.75rem;
    }

    .footer-tools-links,
    .footer-links {
        gap: 0.5rem 0.85rem;
    }
}

/* Medium Devices (375px – 480px) — Modern iPhones, Pixels, Galaxy Phones */
@media (min-width: 375px) and (max-width: 480px) {
    .site-header .header-inner {
        height: 56px;
    }

    .brand-link {
        font-size: 1.2rem;
    }

    .card-body-padding {
        padding: 1.15rem 1rem;
    }

    .hero-headline {
        font-size: 1.55rem;
    }

    .hero-subtext {
        font-size: 0.875rem;
    }
}

/* High Mobile & Phablets (481px – 767px) — Large Phones, Landscape, Foldables */
@media (min-width: 481px) and (max-width: 767px) {
    .main-card-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-headline {
        font-size: 1.85rem;
    }

    .explainer-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .explainer-steps-grid .explainer-step:last-child {
        grid-column: span 2;
    }
}

/* All Touch & Mobile Form Factors (< 768px): iOS zoom prevention & ergonomics */
@media (max-width: 768px) {
    /* Prevent iOS Safari 16px auto-zoom */
    .tool-textarea,
    .tool-input,
    .share-url-input {
        font-size: 16px;
    }

    /* Support safe area on notched devices */
    body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .site-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }
}

