/* checker.css - Exzema Clinical Skincare & INCI Ingredient Checker (Simplified v2.0) */

.checker-page {
    background-color: var(--brand-cream);
    color: var(--brand-forest);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.checker-main {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4.5vw, 3.25rem) 1.25rem 3.5rem;
    flex: 1;
}

@media (max-width: 600px) {
    .checker-main {
        padding: 1.35rem 1rem 2.5rem;
    }
}

/* =========================================================================
   Compact Hero
   ========================================================================= */
.checker-hero {
    margin-bottom: 1.5rem;
}

.checker-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--brand-sand);
    color: var(--brand-clay);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.34rem 0.8rem;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.checker-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--brand-clay);
    border-radius: 50%;
    animation: checkerPulseDot 2.2s infinite ease-in-out;
}

@keyframes checkerPulseDot {
    0%, 100% { opacity: 0.45; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

.checker-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.75rem, 4.2vw, 2.55rem);
    line-height: 1.13;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
    color: var(--brand-forest);
}

.checker-title em {
    font-style: italic;
    color: var(--brand-clay);
}

.checker-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.04rem);
    color: #526052;
    line-height: 1.45;
    max-width: 560px;
}

/* =========================================================================
   Unified Command Surface (Search + Inline Scan Label Button)
   ========================================================================= */
.checker-command-surface {
    background: #ffffff;
    border: 1px solid rgba(45, 58, 45, 0.11);
    border-radius: 18px;
    padding: 1.15rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 28px rgba(45, 58, 45, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checker-command-surface.is-dragover {
    border-color: var(--brand-clay);
    box-shadow: 0 0 0 3px rgba(168, 75, 61, 0.14);
}

@media (max-width: 600px) {
    .checker-command-surface {
        padding: 0.9rem;
        border-radius: 16px;
    }
}

.search-input-wrap {
    position: relative;
    width: 100%;
}

.search-bar-unified {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--brand-cream);
    border: 1.5px solid rgba(45, 58, 45, 0.16);
    border-radius: 13px;
    padding: 0.32rem 0.35rem 0.32rem 0.9rem;
    gap: 0.4rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-bar-unified:focus-within {
    background: #ffffff;
    border-color: var(--brand-clay);
    box-shadow: 0 0 0 3px rgba(168, 75, 61, 0.11);
}

.search-icon {
    color: #728172;
    flex-shrink: 0;
    pointer-events: none;
}

.checker-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.55rem 0.35rem;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--brand-forest);
    outline: none;
}

.checker-search-input::placeholder {
    color: #7A887A;
}

.checker-search-input:focus-visible {
    outline: none !important;
}

.search-clear-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(45, 58, 45, 0.08);
    color: var(--brand-forest);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.search-clear-btn:hover {
    background: rgba(45, 58, 45, 0.16);
}

.btn-inline-scan {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    background: var(--brand-forest);
    color: var(--brand-cream);
    border: none;
    border-radius: 10px;
    padding: 0.58rem 0.9rem;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.15s ease;
}

.btn-inline-scan:hover {
    background: var(--brand-clay);
}

.btn-inline-scan:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .search-bar-unified {
        padding-left: 0.75rem;
    }
    .checker-search-input {
        font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
        padding: 0.5rem 0.2rem;
    }
    .btn-inline-scan {
        padding: 0.54rem 0.72rem;
        font-size: 0.79rem;
    }
}

/* Autocomplete Dropdown */
.product-autocomplete-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(45, 58, 45, 0.14);
    border-radius: 13px;
    box-shadow: 0 14px 34px rgba(45, 58, 45, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.product-autocomplete-item {
    padding: 0.72rem 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(45, 58, 45, 0.05);
    transition: background 0.15s;
}

.product-autocomplete-item:last-child {
    border-bottom: none;
}

.product-autocomplete-item:hover,
.product-autocomplete-item.active {
    background: var(--brand-sand);
}

.autocomplete-prod-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.autocomplete-prod-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-forest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-prod-brand {
    font-size: 0.76rem;
    color: #6B7A6B;
}

.autocomplete-source-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: 99px;
    background: rgba(74, 122, 89, 0.11);
    color: var(--brand-success);
    white-space: nowrap;
}

.autocomplete-source-badge.obf-live {
    background: rgba(217, 168, 96, 0.18);
    color: #8A5E14;
}

.autocomplete-status-msg {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: #556355;
    text-align: center;
}

/* =========================================================================
   Progressive Disclosure: OCR Photo Scan Drawer
   ========================================================================= */
.photo-scan-drawer {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(45, 58, 45, 0.08);
}

.photo-scan-drawer.visible {
    display: flex;
}

.photo-preview-card {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: var(--brand-cream);
    border: 1px solid rgba(45, 58, 45, 0.1);
}

.photo-preview-card.visible {
    display: flex;
}

.photo-preview-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(45, 58, 45, 0.1);
    background: #ffffff;
}

.photo-preview-meta {
    flex: 1;
    min-width: 0;
}

.photo-status-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--brand-forest);
    margin-bottom: 0.22rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-progress-track {
    width: 100%;
    height: 5px;
    border-radius: 99px;
    background: rgba(45, 58, 45, 0.1);
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.photo-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: 99px;
    background: var(--brand-clay);
    transition: width 0.25s ease;
}

.photo-status-sub {
    font-size: 0.74rem;
    color: #5C6B5C;
}

.photo-error-banner {
    display: none;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(168, 75, 61, 0.08);
    border: 1px solid rgba(168, 75, 61, 0.24);
    color: var(--brand-clay);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
}

.photo-error-banner.visible {
    display: block;
}

.photo-edit-details {
    display: none;
    border: 1px solid rgba(45, 58, 45, 0.11);
    border-radius: 11px;
    padding: 0.6rem 0.8rem;
    background: var(--brand-cream);
}

.photo-edit-details.visible {
    display: block;
}

.photo-edit-details summary {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-forest);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.photo-detected-textarea {
    width: 100%;
    min-height: 78px;
    margin-top: 0.6rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(45, 58, 45, 0.16);
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.45;
    background: #ffffff;
    color: var(--brand-forest);
    resize: vertical;
    outline: none;
}

.photo-detected-textarea:focus {
    border-color: var(--brand-clay);
}

.photo-edit-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.btn-reanalyze {
    background: var(--brand-forest);
    color: var(--brand-cream);
    border: none;
    padding: 0.45rem 0.85rem;
    border-radius: 99px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-reanalyze:hover {
    background: var(--brand-clay);
}

/* =========================================================================
   Results Dashboard
   ========================================================================= */
.checker-results {
    display: none;
    animation: checkerFadeIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.checker-results.visible {
    display: block;
}

@keyframes checkerFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Unified Verdict Header Card */
.verdict-card {
    background: #ffffff;
    border: 1px solid rgba(45, 58, 45, 0.1);
    border-radius: 18px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 6px 24px rgba(45, 58, 45, 0.04);
    margin-bottom: 1.1rem;
}

@media (max-width: 600px) {
    .verdict-card {
        padding: 1.05rem;
        border-radius: 15px;
    }
}

.verdict-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.product-category-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: #5C6B5C;
}

.btn-share-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: 1px solid rgba(45, 58, 45, 0.15);
    color: #4A574A;
    padding: 0.24rem 0.65rem;
    border-radius: 99px;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.btn-share-link:hover {
    background: var(--brand-sand);
    color: var(--brand-forest);
}

/* Verdict Main Row: Score Ring + Product Title/Summary */
.verdict-main-row {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

/* Calibrated Score Dial */
.score-gauge-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-gauge-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.score-dial-ticks {
    fill: none;
    stroke: rgba(45, 58, 45, 0.15);
    stroke-width: 2;
    stroke-dasharray: 1.5 9.146;
}

.score-dial-face {
    fill: var(--brand-cream);
    stroke: rgba(45, 58, 45, 0.08);
    stroke-width: 1;
}

.score-ring-bg {
    fill: none;
    stroke: rgba(45, 58, 45, 0.08);
    stroke-width: 7.5;
}

.score-ring-fill {
    fill: none;
    stroke: var(--brand-success);
    stroke-width: 7.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.25s ease;
}

.score-ring-fill.caution { stroke: #C88C28; }
.score-ring-fill.high-risk { stroke: var(--brand-clay); }

.score-dot-group {
    transform-origin: 68px 68px;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.score-ring-dot {
    fill: var(--brand-success);
    stroke: var(--brand-cream);
    stroke-width: 2.5;
    transition: fill 0.25s ease;
}

.score-ring-dot.caution { fill: #C88C28; }
.score-ring-dot.high-risk { fill: var(--brand-clay); }

.score-gauge-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

.score-number {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--brand-forest);
}

.score-gauge-wrap.is-caution .score-number { color: #7C510B; }
.score-gauge-wrap.is-high-risk .score-number { color: var(--brand-clay); }
.score-gauge-wrap.is-safe .score-number { color: #2E5C3C; }

.score-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(45, 58, 45, 0.6);
    margin-top: 0.2rem;
    font-weight: 700;
}

@media (max-width: 540px) {
    .verdict-main-row {
        gap: 0.85rem;
        align-items: flex-start;
    }
    .score-gauge-wrap {
        width: 78px;
        height: 78px;
    }
    .score-number {
        font-size: 1.42rem;
    }
    .score-label {
        font-size: 0.52rem;
    }
}

.verdict-info-col {
    flex: 1;
    min-width: 0;
}

.verdict-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Optional Compact Product Thumbnail (Hidden automatically when no photo exists) */
.verdict-thumb-wrap {
    display: none;
    flex-shrink: 0;
}

.verdict-thumb-wrap.has-photo {
    display: block;
}

.verdict-thumb-box {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(45, 58, 45, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verdict-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.verdict-thumb-img.loaded {
    opacity: 1;
}

.verdict-thumb-attribution {
    display: block;
    font-size: 0.64rem;
    color: #7A887A;
    margin-top: 0.55rem;
}

.verdict-title-group {
    min-width: 0;
    flex: 1;
}

.verdict-product-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.18rem, 2.6vw, 1.48rem);
    line-height: 1.22;
    font-weight: 500;
    color: var(--brand-forest);
    margin-bottom: 0.25rem;
}

.verdict-summary-text {
    font-size: 0.88rem;
    color: #4F5E4F;
    line-height: 1.42;
}

/* Contradiction Alert Banner */
.claim-contradiction-alert {
    margin-top: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: 11px;
    background: rgba(168, 75, 61, 0.075);
    border: 1px solid rgba(168, 75, 61, 0.22);
    display: none;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.82rem;
    line-height: 1.4;
}

.claim-contradiction-alert.visible {
    display: flex;
}

.contradiction-icon {
    flex-shrink: 0;
    color: var(--brand-clay);
    margin-top: 0.1rem;
}

.contradiction-body strong {
    color: var(--brand-clay);
    margin-right: 0.25rem;
}

/* =========================================================================
   Results Blocks & Progressive Disclosure Trigger Rows
   ========================================================================= */
.results-block {
    background: #ffffff;
    border: 1px solid rgba(45, 58, 45, 0.09);
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .results-block {
        padding: 1rem;
        border-radius: 14px;
    }
}

.result-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.result-section-title {
    font-family: 'Lora', serif;
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--brand-forest);
    margin: 0;
}

.result-count-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6B7A6B;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Flat Editorial Expandable Trigger Rows */
.triggers-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(45, 58, 45, 0.08);
}

.trigger-row {
    border-bottom: 1px solid rgba(45, 58, 45, 0.08);
    transition: background 0.15s ease;
}

.trigger-row:last-child {
    border-bottom: none;
}

.trigger-row-summary {
    padding: 0.85rem 0.15rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    user-select: none;
}

.trigger-row-summary:hover .ingredient-name {
    color: var(--brand-clay);
}

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

.trigger-row-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.trigger-severity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--brand-clay);
}

.trigger-row.tier-moderate .trigger-severity-dot {
    background: #C88C28;
}

.trigger-title-stack {
    min-width: 0;
    flex: 1;
}

.ingredient-name {
    font-family: 'Lora', serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--brand-forest);
    line-height: 1.25;
    transition: color 0.15s ease;
}

.ingredient-matched-token {
    display: block;
    font-size: 0.76rem;
    color: #6B7A6B;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trigger-row-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.trigger-tier-label {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.trigger-tier-label.high {
    color: var(--brand-clay);
}

.trigger-tier-label.moderate {
    color: #8A5A0B;
}

.trigger-chevron {
    font-size: 0.72rem;
    color: #728172;
    transition: transform 0.2s ease;
}

.trigger-row[open] .trigger-chevron {
    transform: rotate(180deg);
}

.trigger-row-body {
    padding: 0.1rem 0.15rem 0.95rem 1.05rem;
}

@media (max-width: 500px) {
    .trigger-row-body {
        padding-left: 1.05rem;
    }
}

.ingredient-mechanism {
    font-size: 0.85rem;
    color: #3E4C3E;
    line-height: 1.52;
    margin-bottom: 0.45rem;
}

.trigger-meta-footer {
    font-size: 0.74rem;
    color: #6B7A6B;
    line-height: 1.4;
}

.trigger-meta-footer .citation-source {
    color: #4A574A;
    font-weight: 500;
}

/* Zero Triggers Success State */
.zero-triggers-state {
    background: rgba(74, 122, 89, 0.07);
    border: 1px solid rgba(74, 122, 89, 0.22);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.zero-triggers-icon {
    color: var(--brand-success);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.zero-triggers-state strong {
    display: block;
    font-size: 0.88rem;
    color: var(--brand-forest);
    margin-bottom: 0.15rem;
}

.zero-triggers-state p {
    font-size: 0.82rem;
    color: #4A574A;
    line-height: 1.4;
}

/* =========================================================================
   Collapsible Complete Formula INCI Drawer
   ========================================================================= */
.inci-drawer-summary {
    cursor: pointer;
    list-style: none;
    margin-bottom: 0;
    user-select: none;
}

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

.inci-drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.drawer-chevron {
    font-size: 0.85rem;
    color: #6B7A6B;
    transition: transform 0.2s ease;
}

.inci-drawer[open] .drawer-chevron {
    transform: rotate(180deg);
}

.inci-drawer-body {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(45, 58, 45, 0.07);
}

.inci-tokens-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.inci-token-pill {
    font-size: 0.76rem;
    padding: 0.26rem 0.6rem;
    border-radius: 99px;
    border: 1px solid rgba(45, 58, 45, 0.11);
    background: var(--brand-cream);
    color: var(--brand-forest);
    font-weight: 500;
}

.inci-token-pill.tier-high {
    background: rgba(168, 75, 61, 0.12);
    border-color: rgba(168, 75, 61, 0.32);
    color: var(--brand-clay);
    font-weight: 600;
}

.inci-token-pill.tier-moderate {
    background: rgba(217, 168, 96, 0.22);
    border-color: rgba(217, 168, 96, 0.45);
    color: #7E5009;
    font-weight: 600;
}

.inci-token-pill.is-locked-token {
    background: rgba(168, 75, 61, 0.08);
    border-style: dashed;
    border-color: rgba(168, 75, 61, 0.35);
    color: var(--brand-clay);
    font-weight: 600;
}

.inci-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(45, 58, 45, 0.07);
    font-size: 0.73rem;
    color: #5C6B5C;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(45, 58, 45, 0.25);
}

.legend-dot.high { background: var(--brand-clay); }
.legend-dot.moderate { background: var(--brand-butter); }

/* =========================================================================
   Compact App Handoff Strip
   ========================================================================= */
.tracker-handoff-strip {
    background: var(--brand-forest);
    color: var(--brand-cream);
    border-radius: 15px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.handoff-strip-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.84rem;
}

.handoff-strip-copy strong {
    font-family: 'Lora', serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--brand-cream);
}

.handoff-strip-copy span {
    color: rgba(253, 251, 247, 0.8);
}

.btn-handoff-compact {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    background: var(--brand-clay);
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.15s ease;
}

.btn-handoff-compact:hover {
    background: #923f32;
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .tracker-handoff-strip {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 0.95rem 1.05rem;
    }
    .btn-handoff-compact {
        text-align: center;
    }
}

/* =========================================================================
   Unified Email Gate Wrapper
   ========================================================================= */
.report-gate-wrapper {
    position: relative;
}

.report-gate-wrapper.is-locked {
    border-radius: 16px;
    overflow: hidden;
}

.report-gated-content {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.report-gated-content.is-blurred {
    position: absolute;
    inset: 0;
    overflow: hidden;
    filter: blur(6px);
    opacity: 0.42;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 100%);
}

.gate-overlay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 1rem 1.35rem;
    background: linear-gradient(to bottom, rgba(253, 251, 247, 0.55) 0%, rgba(253, 251, 247, 0.88) 100%);
    backdrop-filter: blur(2px);
    border-radius: 16px;
    z-index: 10;
}

.gate-overlay.hidden {
    display: none;
}

.gate-modal-inner {
    background: #ffffff;
    border: 1.5px solid rgba(168, 75, 61, 0.22);
    border-radius: 16px;
    padding: 1.3rem 1.25rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 32px rgba(45, 58, 45, 0.1);
}

.gate-lock-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-sand);
    color: var(--brand-clay);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.55rem;
}

.gate-title {
    font-family: 'Lora', serif;
    font-size: 1.18rem;
    color: var(--brand-forest);
    margin-bottom: 0.3rem;
    line-height: 1.25;
}

.gate-desc {
    font-size: 0.82rem;
    color: #556355;
    line-height: 1.45;
    margin-bottom: 0.9rem;
}

.gate-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: left;
}

.gate-input-row {
    display: flex;
    gap: 0.45rem;
}

.gate-email-input {
    flex: 1;
    min-width: 0;
    padding: 0.72rem 0.95rem;
    border: 1.5px solid rgba(45, 58, 45, 0.18);
    border-radius: 99px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    background: var(--brand-cream);
}

.gate-email-input:focus {
    border-color: var(--brand-clay);
    background: #ffffff;
}

.btn-unlock-triggers {
    padding: 0.72rem 1.15rem;
    background: var(--brand-clay);
    color: #ffffff;
    border: none;
    border-radius: 99px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(168, 75, 61, 0.22);
    transition: background 0.18s, transform 0.15s;
}

.btn-unlock-full {
    width: 100%;
}

.btn-unlock-triggers:hover {
    background: #923f32;
    transform: translateY(-1px);
}

.btn-unlock-triggers:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 440px) {
    .gate-input-row {
        flex-direction: column;
    }
    .gate-email-input {
        font-size: 16px;
    }
    .btn-unlock-triggers {
        width: 100%;
    }
}

.gate-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.74rem;
    color: #5C6B5C;
    line-height: 1.35;
}

.gate-consent-row input[type="checkbox"] {
    margin-top: 0.12rem;
    accent-color: var(--brand-clay);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}

.gate-consent-row a {
    color: var(--brand-clay);
    text-decoration: underline;
}

.gate-error-msg {
    font-size: 0.76rem;
    color: var(--brand-clay);
    font-weight: 600;
    display: none;
}

.gate-pending-status {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-clay);
    background: rgba(168, 75, 61, 0.08);
    border: 1px solid rgba(168, 75, 61, 0.2);
    border-radius: 9px;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.75rem;
}

.gate-secondary-actions {
    margin-top: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: #7A897A;
}

.gate-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-forest);
    text-decoration: underline;
    cursor: pointer;
}

.gate-link-btn:hover {
    color: var(--brand-clay);
}

/* =========================================================================
   Minimalistic Product Discovery Grid
   ========================================================================= */
.product-discovery-section {
    margin-top: 1.5rem;
}

.product-discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.discovery-tile {
    background: #ffffff;
    border: 1px solid rgba(45, 58, 45, 0.08);
    border-radius: 13px;
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.discovery-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 75, 61, 0.45);
    box-shadow: 0 6px 18px rgba(45, 58, 45, 0.06);
}

.discovery-tile.active {
    border-color: var(--brand-clay);
    box-shadow: 0 0 0 2px rgba(168, 75, 61, 0.14);
}

.discovery-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--brand-cream);
}

.discovery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.discovery-brand {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-clay);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discovery-name {
    font-family: 'Lora', serif;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--brand-forest);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .product-discovery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    .discovery-tile:nth-child(n+7) {
        display: none;
    }
}

/* =========================================================================
   Footer Disclaimer
   ========================================================================= */
.checker-disclaimer {
    font-size: 0.74rem;
    color: #6B7A6B;
    line-height: 1.48;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(45, 58, 45, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .checker-badge .dot,
    .score-ring-fill,
    .score-dot-group,
    .verdict-thumb-img {
        animation: none !important;
        transition: none !important;
    }
}
