/* Who Sent That Text Message - Landing Page Styles */

/* ==================== Variables ==================== */
:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #14B8A6;
    --primary-300: #5EEAD4;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
}

/* ==================== Hero Section ==================== */
.hero-section-light {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%);
    padding: 4rem 1rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    min-height: 280px;
}

.hero-title-light {
    font-size: 2.5rem;
    font-weight: 800;
    color: #134E4A;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title-light {
        font-size: 3.5rem;
    }
}

.hero-subtitle-light {
    font-size: 1.125rem;
    color: #115E59;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ==================== Lookup Form ==================== */
.hero-form {
    max-width: 600px;
    margin: 0 auto;
}

.lookup-form-light .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .lookup-form-light .input-group {
        flex-direction: row;
    }
}

.form-input-light {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    border: 2px solid #99F6E4;
    border-radius: 0.75rem;
    background: white;
    color: #134E4A;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input-light:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.form-input-light::placeholder {
    color: #5EEAD4;
}

.btn-primary-light {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: var(--primary-dark); /* #0F766E — WCAG AA 5.5:1 with white */
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-primary-light:hover {
    background: #115e59; /* primary-800 — darker hover state */
}

.btn-primary-light:active {
    transform: scale(0.98);
}

.btn-primary-light:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary-light.loading {
    position: relative;
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: left;
}

.trust-badge-light {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #0F766E;
}

/* ==================== Lookup Results ==================== */
.lookup-results-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.lookup-results-card.teaser {
    border: 2px dashed #99F6E4;
}

.lookup-results-card.international {
    text-align: center;
}

.results-header-full {
    margin-bottom: 1rem;
}

.phone-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phone-icon {
    font-size: 1.5rem;
}

.phone-number-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #134E4A;
}

/* Spam Status Banner */
.spam-status-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.spam-status-banner.status-safe {
    background: var(--success-light);
    color: #065F46;
}

.spam-status-banner.status-danger {
    background: var(--danger-light);
    color: #991B1B;
}

.spam-status-banner.status-warning {
    background: var(--warning-light);
    color: #92400E;
}

.status-icon {
    font-size: 1.5rem;
}

.status-content {
    display: flex;
    flex-direction: column;
}

.status-title {
    font-weight: 600;
}

.status-desc {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #F0FDFA;
    border-radius: 0.5rem;
}

.info-icon {
    font-size: 1.25rem;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: #5EEAD4;
    text-transform: uppercase;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    color: #134E4A;
}

.info-value.info-unknown {
    color: #9CA3AF;
    font-style: italic;
}

.carrier-type-badge {
    font-size: 0.75rem;
    background: #CCFBF1;
    color: #0F766E;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.25rem;
}

.msg-enabled {
    font-size: 0.75rem;
    color: var(--success);
}

.msg-disabled {
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* Results Actions */
.results-actions-full {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .results-actions-full {
        flex-direction: row;
    }
}

.btn-action {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-action.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-action.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-action.btn-secondary {
    background: var(--danger);
    color: white;
    border: none;
}

.btn-action.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-action.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.results-footer {
    font-size: 0.875rem;
    color: #6B7280;
    text-align: center;
    margin-top: 1rem;
}

/* Teaser Results */
.teaser-lock {
    text-align: center;
    padding: 1.5rem;
}

.lock-icon {
    font-size: 3rem;
}

.teaser-lock h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #134E4A;
    margin-top: 0.5rem;
}

.teaser-lock p {
    color: #6B7280;
    margin-top: 0.5rem;
}

.teaser-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
    display: inline-block;
}

.teaser-features li {
    padding: 0.25rem 0;
    color: #134E4A;
}

.results-actions {
    padding: 1.5rem;
}

/* ==================== Features Section ==================== */
.features-section {
    padding: 4rem 1rem;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #134E4A;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
}

.feature-visual {
    margin-bottom: 1rem;
    aspect-ratio: 4/3; /* Reserve space for 800×600 images — prevents deferred-CSS CLS */
}

.feature-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #134E4A;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #6B7280;
    line-height: 1.6;
}

/* ==================== Scam Examples Section ==================== */
.scam-examples-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #134E4A 0%, #0F766E 100%);
    color: white;
}

.scam-examples-section .section-title {
    color: white;
}

.scam-examples-section .section-subtitle {
    color: #99F6E4;
}

.scam-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.scam-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .scam-item {
        flex-direction: row;
    }

    .scam-item.reverse {
        flex-direction: row-reverse;
    }
}

.scam-text {
    flex: 1;
}

.scam-visual {
    flex: 1;
    aspect-ratio: 4/3; /* Reserve space for 800×600 images — prevents CLS */
}

.scam-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.scam-description {
    color: #CCFBF1;
    line-height: 1.6;
}

.scam-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ==================== Protection Section ==================== */
.info-protection-section {
    padding: 4rem 1rem;
    background: #F9FAFB;
}

.protection-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.protection-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .protection-item {
        flex-direction: row;
    }

    .protection-item.reverse {
        flex-direction: row-reverse;
    }
}

.protection-text {
    flex: 1;
}

.protection-visual {
    flex: 1;
    aspect-ratio: 4/3; /* Reserve space for 800×600 images — prevents CLS */
}

.protection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #134E4A;
    margin-bottom: 0.75rem;
}

.protection-description {
    color: #6B7280;
    line-height: 1.6;
}

.protection-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ==================== FAQ Section ==================== */
.faq-section {
    padding: 4rem 1rem;
    background: white;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: #134E4A;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #6B7280;
    line-height: 1.6;
}

/* ==================== Final CTA Section ==================== */
.final-cta-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-subtitle {
    color: #CCFBF1;
    margin-bottom: 1.5rem;
}

.btn-cta-large {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #115e59; /* primary-800 — WCAG AA 7.6:1 on white */
    background: white;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== Button Utilities ==================== */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #374151;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-google:hover {
    background: #F9FAFB;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.full-width {
    width: 100%;
}

/* ==================== Modal Divider ==================== */
.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: #9CA3AF;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.modal-divider span {
    padding: 0 0.75rem;
    font-size: 0.875rem;
}

/* ==================== Dark Mode Overrides ==================== */
.dark .hero-section-light {
    background: linear-gradient(135deg, #134E4A 0%, #0F766E 50%, #115E59 100%);
}

.dark .hero-title-light {
    color: white;
}

.dark .hero-subtitle-light {
    color: #99F6E4;
}

.dark .form-input-light {
    background: #1F2937;
    border-color: #374151;
    color: white;
}

.dark .form-input-light::placeholder {
    color: #6B7280;
}

.dark .trust-badge-light {
    color: #99F6E4;
}

.dark .lookup-results-card {
    background: #1F2937;
}

.dark .phone-number-large {
    color: white;
}

.dark .info-card {
    background: #374151;
}

.dark .info-value {
    color: white;
}

.dark .features-section {
    background: #111827;
}

.dark .section-title {
    color: white;
}

.dark .section-subtitle {
    color: #9CA3AF;
}

.dark .feature-title {
    color: white;
}

.dark .feature-description {
    color: #9CA3AF;
}

.dark .info-protection-section {
    background: #1F2937;
}

.dark .protection-title {
    color: white;
}

.dark .protection-description {
    color: #9CA3AF;
}

.dark .faq-section {
    background: #111827;
}

.dark .faq-question {
    color: white;
}

.dark .faq-answer {
    color: #9CA3AF;
}

.dark .faq-item {
    border-color: #374151;
}

/* ==================== Frosted Teaser Results ==================== */
.teaser-frosted {
    position: relative;
}

.frosted-results-wrapper {
    position: relative;
    margin-top: 1rem;
}

.frosted-content {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.frosted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 0.75rem;
}

.dark .frosted-overlay {
    background: rgba(31, 41, 55, 0.85);
}

.unlock-cta {
    text-align: center;
    padding: 2rem;
    max-width: 320px;
}

.lock-icon-large {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.unlock-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #134E4A;
    margin-bottom: 0.5rem;
}

.dark .unlock-title {
    color: white;
}

.unlock-subtitle {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1.25rem;
}

.dark .unlock-subtitle {
    color: #9CA3AF;
}

.btn-unlock-primary {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-unlock-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.unlock-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: #9CA3AF;
}

.unlock-divider::before,
.unlock-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.dark .unlock-divider::before,
.dark .unlock-divider::after {
    border-color: #4B5563;
}

.unlock-divider span {
    padding: 0 0.75rem;
    font-size: 0.75rem;
}

.btn-unlock-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-unlock-google:hover {
    background: #F9FAFB;
}

.dark .btn-unlock-google {
    background: #374151;
    border-color: #4B5563;
    color: white;
}

.dark .btn-unlock-google:hover {
    background: #4B5563;
}

.unlock-footer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* Authority Bar */
.authority-bar {
    background: #F3F4F6;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.authority-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.authority-bar-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6B7280;
    white-space: nowrap;
}

.authority-bar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.authority-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 9999px;
}

.dark .authority-bar {
    background: #1F2937;
    border-color: #374151;
}

.dark .authority-pill {
    background: #374151;
    border-color: #4B5563;
    color: #D1D5DB;
}

/* Hero micro-stats row */
.hero-micro-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.micro-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.micro-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F766E;
}

.micro-stat-label {
    font-size: 0.75rem;
    color: #6B7280;
}

.dark .micro-stat-value {
    color: #5EEAD4;
}

.dark .micro-stat-label {
    color: #9CA3AF;
}

/* Scam section report CTA */
.scam-report-cta {
    margin-top: 2.5rem;
    text-align: center;
}

.scam-report-cta-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
}

.scam-report-cta-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #134E4A;
    background: white;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.15s;
}

.scam-report-cta-btn:hover {
    background: #F0FDF4;
}
