/* Homepage styles — home/index.html.twig */

:root {
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --bg-soft: #f8fafc;
    --orange: #F15A24;
    --orange-dark: #d94f1f;
    --orange-soft: #fff1eb;
    --orange-soft-2: #fff0eb;
    --muted: #6b7280;
    --muted-2: #94a3b8;
    --text: #1f2937;
    --red-border: #fecaca;
    --red-soft: #fee2e2;
    --red-text: #dc2626;
    --green-border: #bbf7d0;
    --green-soft: #dcfce7;
    --green-text: #16a34a;
}

/* Search Section */
.search-section {
    padding: 40px 0 48px;
}

.search-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-logo {
    height: 56px;
    width: auto;
}

.search-card {
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.search-title {
    margin: 0 0 24px;
    text-align: center;
    color: #334155;
    font-size: 20px;
    line-height: 1.5;
}

/* Hero Section */
.hero-section {
    background: var(--bg-soft);
    padding: 32px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
}

.hero-copy {
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid #f3b59c;
    background: var(--orange-soft);
    color: #c2410c;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero-title {
    margin: 24px 0 0;
    color: #0b1220;
    font-size: 68px;
    line-height: 0.9;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero-description {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.hero-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s ease;
    text-decoration: none;
}

.hero-btn-primary {
    background: var(--orange);
    color: #fff;
    border: none;
}

.hero-btn-primary:hover {
    background: var(--orange-dark);
    color: #fff;
}

.hero-btn-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.hero-btn-secondary:hover {
    background: #f8fafc;
    color: #334155;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 14px;
}

.feature-tick {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    border-radius: 999px;
    background: var(--orange-soft-2);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-left: 24px;
}

.visual-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.visual-card-orange { border-color: #ffd2c2; }
.visual-card-red { border-color: var(--red-border); }
.visual-card-green { border-color: var(--green-border); }

.visual-card-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-orange { background: var(--orange-soft-2); color: var(--orange); }
.badge-red { background: var(--red-soft); color: var(--red-text); }
.badge-slate { background: #e2e8f0; color: #334155; }
.badge-green { background: var(--green-soft); color: var(--green-text); }

.visual-card-media-wrap { position: relative; }

.visual-card-image {
    width: 100%;
    height: 176px;
    margin-top: 16px;
    object-fit: cover;
    border-radius: 18px;
}

.visual-card-subtitle {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.flagged-overlay {
    position: absolute;
    inset: 16px 0 0;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 18px;
}

.flagged-pill {
    position: absolute;
    top: 28px;
    right: 12px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: 176px;
    margin-top: 16px;
    padding: 8px;
    border-radius: 18px;
    background: #f8fafc;
}

.match-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.match-label {
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 12px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.match-image {
    width: 100%;
    height: calc(100% - 36px);
    object-fit: cover;
}

.ownership-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px);
}

.ownership-meta {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.ownership-title {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.ownership-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.ownership-serial { color: var(--muted); font-size: 12px; }

.ownership-status {
    color: #16a34a;
    font-size: 14px;
    font-weight: 600;
}

/* How Section */
.how-section {
    padding: 56px 0 80px;
}

.how-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: end;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--orange);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}

.section-title {
    margin: 0;
    color: var(--text);
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.how-head-copy {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.step-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
}

.step-card-slate .step-line { background: #cbd5e1; }
.step-card-orange .step-line { background: var(--orange); }
.step-card-red .step-line { background: #ef4444; }

.step-number {
    margin-bottom: 16px;
    font-size: 40px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.step-number-slate { color: #94a3b8; }
.step-number-orange { color: #ffbfa6; }
.step-number-red { color: #fca5a5; }

.step-title {
    margin: 0;
    color: var(--text);
    font-size: 32px;
    line-height: 1.1;
    font-weight: 600;
}

.step-text {
    min-height: 72px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.step-chip {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.step-chip-slate { background: #f1f5f9; color: #475569; }
.step-chip-orange { background: var(--orange-soft); color: #c2410c; }
.step-chip-red { background: #fff0f0; color: #b91c1c; }

.step-arrow { color: #cbd5e1; font-size: 18px; }

/* Prevention Section */
.prevention-section {
    padding: 56px 0 80px;
}

.prevention-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: #fff7f3;
    padding: 40px;
}

.prevention-text {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.prevention-list-card {
    border: 1px solid #fff;
    border-radius: 28px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.bullet-item p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
}

.bullet-tick {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    border-radius: 999px;
    background: var(--orange-soft-2);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1100px) {
    .hero-grid,
    .how-head,
    .prevention-panel {
        grid-template-columns: 1fr;
    }
    .hero-cards {
        padding-left: 0;
    }
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    .section-title {
        font-size: 42px;
    }
    .hero-title {
        font-size: 58px;
    }
}

@media (max-width: 700px) {
    .search-section {
        padding: 32px 0 40px;
    }
    .search-logo {
        height: 40px;
    }
    .search-logo-wrap {
        margin-bottom: 24px;
    }
    .search-card {
        padding: 20px 16px;
    }
    .search-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .hero-section,
    .how-section,
    .prevention-section {
        padding: 40px 0 56px;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-description {
        font-size: 18px;
        line-height: 1.75;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-cards,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 34px;
    }
    .step-title {
        font-size: 24px;
    }
    .prevention-panel {
        padding: 24px;
        border-radius: 24px;
    }
    .visual-card,
    .step-card,
    .prevention-list-card {
        border-radius: 22px;
    }
}
