/* ============================================
   AUTOMATDO TPV PAGE STYLES
   Extends landing.css design system
   ============================================ */

/* ---------- TPV Hero Section ---------- */
.tpv-hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem var(--space-xl) var(--space-3xl);
}

.tpv-hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.tpv-hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

.tpv-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.tpv-hero-title .title-line {
    display: block;
}

.tpv-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 540px;
}

.tpv-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.hero-point {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.12) 0%, rgba(212, 165, 48, 0.06) 100%);
    border: 1px solid rgba(212, 165, 48, 0.25);
    border-radius: 100px;
    transition: all var(--transition-base);
}

.hero-point::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-point:hover {
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.18) 0%, rgba(212, 165, 48, 0.10) 100%);
    border-color: rgba(212, 165, 48, 0.4);
    transform: translateY(-1px);
}

.tpv-hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.tpv-hero-stats {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: calc(var(--space-sm) - var(--space-lg));
}

.cta-microcopy {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0;
}

.tpv-hero-stats .stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.tpv-hero-stats .stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.tpv-hero-stats .stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.tpv-hero-stats .stat-divider {
    width: 1px;
    background: var(--border-medium);
}

/* ---------- TPV Hero Visual ---------- */
.tpv-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.tpv-visual-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(ellipse at center, var(--accent-glow-strong) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.tpv-verification-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

[data-theme="light"] .tpv-verification-card {
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-lg);
}

.verification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.12) 0%, rgba(212, 165, 48, 0.04) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.verification-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-primary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.verification-time {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.verification-progress {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.progress-step {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.progress-step.completed {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.05);
}

.progress-step.active {
    border-color: var(--accent-primary);
    background: rgba(212, 165, 48, 0.08);
}

.step-indicator {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.progress-step.completed .step-indicator {
    background: var(--success);
    color: white;
}

.progress-step.active .step-indicator {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
}

.step-indicator.pulsing {
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 165, 48, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(212, 165, 48, 0);
    }
}

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-detail {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-detail.typing::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.verification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-subtle);
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--error);
}

.rec-dot {
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    animation: recPulse 1.5s ease-in-out infinite;
}

@keyframes recPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.order-id {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ---------- Problem Section ---------- */
.tpv-problem {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.problem-content .section-title {
    margin-bottom: var(--space-md);
}

.problem-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.problem-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.problem-stat {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

[data-theme="light"] .problem-stat {
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-sm);
}

.problem-stat:hover {
    border-color: var(--error);
    transform: translateX(4px);
}

.problem-headline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(239, 68, 68, 0.06) 100%);
    border-radius: var(--radius-md);
    color: var(--error);
}

.problem-icon svg {
    width: 24px;
    height: 24px;
}

.problem-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--error);
}

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

/* ---------- Solution Section ---------- */
.tpv-solution {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
}

.solution-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.solution-feature-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

[data-theme="light"] .solution-feature-card {
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-sm);
}

.solution-feature-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

[data-theme="light"] .solution-feature-card:hover {
    box-shadow: var(--shadow-md);
}

.solution-feature-card .feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.15) 0%, rgba(212, 165, 48, 0.05) 100%);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
}

.solution-feature-card .feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.solution-feature-card .feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- How It Works Section ---------- */
.tpv-how-it-works {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.workflow-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.workflow-step {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
    position: relative;
}

.workflow-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent-primary);
    opacity: 0.6;
    text-align: center;
}

.workflow-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

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

.workflow-visual {
    display: flex;
    justify-content: center;
}

.workflow-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 24px rgba(212, 165, 48, 0.3);
}

.workflow-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--border-medium));
    margin: 0 auto;
    position: relative;
}

.workflow-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: flowDown 2s ease-in-out infinite;
}

@keyframes flowDown {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ---------- Industries Section ---------- */
.tpv-industries {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.industry-card {
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

[data-theme="light"] .industry-card {
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-sm);
}

.industry-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

[data-theme="light"] .industry-card:hover {
    box-shadow: var(--shadow-md);
}

.industry-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 165, 48, 0.15) 0%, rgba(212, 165, 48, 0.05) 100%);
    border-radius: var(--radius-lg);
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
}

.industry-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.industry-card > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.industry-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.industry-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.industry-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Comparison Section ---------- */
.tpv-comparison {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.comparison-table-container {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 600px;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-md);
}

.comparison-header {
    margin-bottom: var(--space-md);
}

.comparison-cell {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
}

.header-label {
    background: transparent;
}

.header-old,
.header-new {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-old {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.header-new {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
}

.comparison-row {
    margin-bottom: var(--space-sm);
}

.row-label {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-weight: 500;
    color: var(--text-primary);
}

[data-theme="light"] .row-label {
    background: var(--bg-card-solid);
}

.old-value {
    background: var(--bg-tertiary);
    text-align: center;
    color: var(--text-secondary);
}

.new-value {
    background: rgba(212, 165, 48, 0.1);
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid rgba(212, 165, 48, 0.2);
}

.new-value.highlight {
    color: var(--accent-primary);
}

/* 3-Column Comparison Table */
.comparison-table-3col .comparison-header,
.comparison-table-3col .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.header-mid {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.mid-value {
    background: var(--bg-tertiary);
    text-align: center;
    color: var(--text-secondary);
}

.mid-value.negative {
    color: var(--error);
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 1024px) {
    .tpv-hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .tpv-hero-subtitle {
        max-width: 100%;
    }

    .tpv-hero-cta {
        justify-content: center;
    }

    .tpv-hero-stats {
        justify-content: center;
    }

    .tpv-hero-points {
        justify-content: center;
        max-width: 100%;
    }

    .tpv-hero-visual {
        order: -1;
    }

    .tpv-verification-card {
        max-width: 380px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .solution-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        grid-template-columns: 60px 1fr;
        gap: var(--space-lg);
    }

    .workflow-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .tpv-hero {
        padding: 7rem var(--space-lg) var(--space-2xl);
        min-height: auto;
    }

    .tpv-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .tpv-hero-cta {
        flex-direction: column;
    }

    .tpv-hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
        align-items: center;
    }

    .hero-point {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }

    .hero-point::before {
        width: 5px;
        height: 5px;
    }

    .tpv-hero-stats .stat-divider {
        width: 60px;
        height: 1px;
    }

    .solution-features-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .workflow-number {
        font-size: 2.5rem;
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

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

    .row-label {
        font-size: 0.875rem;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-weight: 600;
        padding-bottom: 0;
    }

    .old-value,
    .mid-value,
    .new-value {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--space-sm);
    }

    .old-value::before {
        content: 'Agent: ';
        font-size: 0.75rem;
        color: var(--text-tertiary);
    }

    .mid-value::before {
        content: 'IVR: ';
        font-size: 0.75rem;
        color: var(--text-tertiary);
    }

    .new-value::before {
        content: 'Automatdo: ';
        font-size: 0.75rem;
        color: var(--accent-primary);
    }

    .header-old,
    .header-mid,
    .header-new {
        display: none;
    }

    .verification-progress {
        padding: var(--space-md);
    }

    .progress-step {
        padding: var(--space-sm) var(--space-md);
    }

    .step-detail {
        display: none;
    }
}

@media (max-width: 480px) {
    .tpv-hero-stats .stat-number {
        font-size: 1.5rem;
    }

    .problem-number {
        font-size: 2rem;
    }

    .industry-card {
        padding: var(--space-lg);
    }

    .workflow-number {
        font-size: 2rem;
    }

    .workflow-content h3 {
        font-size: 1.25rem;
    }
}

/* ---------- Animation Enhancements ---------- */
.tpv-hero-visual,
.problem-stat,
.solution-feature-card,
.industry-card,
.workflow-step {
    opacity: 0;
    transform: translateY(30px);
}

.tpv-hero-visual.animate-in,
.problem-stat.animate-in,
.solution-feature-card.animate-in,
.industry-card.animate-in,
.workflow-step.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Staggered delays for grid items */
.solution-feature-card:nth-child(1) { transition-delay: 0.1s; }
.solution-feature-card:nth-child(2) { transition-delay: 0.2s; }
.solution-feature-card:nth-child(3) { transition-delay: 0.3s; }
.solution-feature-card:nth-child(4) { transition-delay: 0.4s; }
.solution-feature-card:nth-child(5) { transition-delay: 0.5s; }
.solution-feature-card:nth-child(6) { transition-delay: 0.6s; }

.industry-card:nth-child(1) { transition-delay: 0.1s; }
.industry-card:nth-child(2) { transition-delay: 0.2s; }
.industry-card:nth-child(3) { transition-delay: 0.3s; }
.industry-card:nth-child(4) { transition-delay: 0.4s; }

.problem-stat:nth-child(1) { transition-delay: 0.1s; }
.problem-stat:nth-child(2) { transition-delay: 0.2s; }
.problem-stat:nth-child(3) { transition-delay: 0.3s; }

.workflow-step:nth-child(1) { transition-delay: 0.1s; }
.workflow-step:nth-child(3) { transition-delay: 0.2s; }
.workflow-step:nth-child(5) { transition-delay: 0.3s; }
.workflow-step:nth-child(7) { transition-delay: 0.4s; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .tpv-visual-glow {
        animation: none;
    }

    .step-indicator.pulsing {
        animation: none;
    }

    .rec-dot {
        animation: none;
    }

    .workflow-connector::before {
        animation: none;
    }

    .tpv-hero-visual,
    .problem-stat,
    .solution-feature-card,
    .industry-card,
    .workflow-step {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
