/* ===========================================
   Acompanhe Aqui - Styles
   Colors: Orange #f97316, Slate, White
   Font: Inter
   =========================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fff7ed;
    --orange-50: #fff7ed;
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--slate-800);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--slate-900);
}
.main-nav {
    display: flex;
    gap: 28px;
}
.main-nav a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: color .15s;
}
.main-nav a:hover { color: var(--orange); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    color: #fff;
    padding: 80px 0 72px;
    text-align: center;
}
.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.125rem;
    color: var(--slate-300);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Track Form */
.track-form { max-width: 560px; margin: 0 auto; }
.track-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.track-icon {
    color: var(--slate-400);
    flex-shrink: 0;
}
.track-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 12px;
    background: transparent;
    font-family: inherit;
    color: var(--slate-800);
}
.track-input-wrap input::placeholder { color: var(--slate-400); }
.btn-track {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    font-family: inherit;
}
.btn-track:hover { background: var(--orange-dark); }

.track-form-small { max-width: 480px; margin: 0 auto; }
.track-bar { padding: 20px 0; }

/* Carriers */
.carriers {
    padding: 48px 0;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
}
.carriers-label {
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-400);
    margin-bottom: 20px;
    font-weight: 600;
}
.carriers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.carrier-badge {
    background: var(--slate-100);
    color: var(--slate-600);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .8125rem;
    font-weight: 500;
}

/* How It Works */
.how-it-works {
    padding: 72px 0;
    text-align: center;
}
.how-it-works h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--slate-900);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-200);
}
.step-icon {
    width: 56px;
    height: 56px;
    background: var(--orange-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--slate-900);
}
.step-card p {
    font-size: .875rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* Stats */
.stats {
    padding: 56px 0;
    background: #fff;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-card { padding: 20px; }
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -0.02em;
}
.stat-label {
    display: block;
    font-size: .875rem;
    color: var(--slate-500);
    margin-top: 4px;
}

/* CTA */
.cta {
    padding: 72px 0;
    text-align: center;
}
.cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta p {
    color: var(--slate-500);
    margin-bottom: 24px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.btn-cta {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: background .15s;
}
.btn-cta:hover { background: var(--orange-dark); }

/* Footer */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: 56px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
}
.footer-desc {
    font-size: .8125rem;
    color: var(--slate-400);
    line-height: 1.6;
}
.footer-col h4 {
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: .8125rem;
    color: var(--slate-400);
    padding: 4px 0;
    transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid var(--slate-700);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { font-size: .75rem; color: var(--slate-500); }
.footer-badges {
    display: flex;
    gap: 16px;
}
.footer-badges span {
    font-size: .75rem;
    color: var(--slate-500);
}

/* ===========================================
   TRACKING PAGE
   =========================================== */

.tracking-page { padding-bottom: 60px; }

/* Loading */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
    gap: 16px;
    color: var(--slate-500);
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid var(--slate-200);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
    gap: 12px;
    text-align: center;
}
.error-state h2 { font-size: 1.25rem; color: var(--slate-800); }
.error-state p { color: var(--slate-500); }

/* Current Status */
.status-card {
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}
.status-info { background: #eff6ff; border: 1px solid #bfdbfe; }
.status-warning { background: #fffbeb; border: 1px solid #fde68a; }
.status-error { background: #fef2f2; border: 1px solid #fecaca; }
.status-success { background: #f0fdf4; border: 1px solid #bbf7d0; }
.status-badge {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}
.status-info .status-badge { background: #3b82f6; color: #fff; }
.status-warning .status-badge { background: #f59e0b; color: #fff; }
.status-error .status-badge { background: #ef4444; color: #fff; }
.status-success .status-badge { background: #22c55e; color: #fff; }
.status-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 8px;
}
.status-meta {
    display: flex;
    gap: 16px;
    font-size: .8125rem;
    color: var(--slate-500);
}

/* Package Info */
.package-info { margin-bottom: 24px; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.info-item {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
}
.info-label {
    display: block;
    font-size: .75rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.info-value {
    display: block;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--slate-800);
}

/* Tax Payment */
.tax-card {
    background: #fff;
    border: 2px solid var(--orange);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}
.tax-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.tax-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-900);
}
.tax-desc {
    font-size: .875rem;
    color: var(--slate-600);
    margin-bottom: 16px;
    line-height: 1.6;
}
.tax-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--orange-50);
    border-radius: var(--radius-sm);
}
.tax-label { font-size: .875rem; color: var(--slate-600); }
.tax-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--orange);
}

.tax-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tax-form input {
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: .9375rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.tax-form input:focus { border-color: var(--orange); }
.btn-pay {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
    margin-top: 4px;
}
.btn-pay:hover { background: var(--orange-dark); }
.btn-pay:disabled { background: var(--slate-400); cursor: not-allowed; }

/* PIX Payment */
.pix-payment {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.pix-qr {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 12px;
}
.pix-qr img { display: block; border-radius: 4px; }
.pix-info { flex: 1; }
.pix-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
}
.pix-label {
    font-size: .8125rem;
    color: var(--slate-500);
    margin-bottom: 8px;
}
.pix-code-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.pix-code {
    flex: 1;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: .8125rem;
    font-family: monospace;
    background: var(--slate-50);
    outline: none;
}
.btn-copy {
    background: var(--slate-800);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    font-family: inherit;
}
.btn-copy:hover { background: var(--slate-700); }
.btn-copy.copied { background: var(--green); }
.pix-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8125rem;
    color: var(--slate-500);
}

/* Timeline */
.timeline-section {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 28px;
}
.timeline-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 20px;
}
.timeline { position: relative; }
.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--slate-200);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}
.dot-default { background: var(--slate-300); }
.dot-completed { background: var(--green); }
.dot-warning { background: var(--yellow); }
.dot-error { background: var(--red); }
.stage-pending .timeline-content { opacity: 0.5; }
.timeline-title {
    font-size: .875rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 2px;
}
.timeline-meta {
    display: flex;
    gap: 12px;
    font-size: .75rem;
    color: var(--slate-500);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .hero-sub { font-size: .9375rem; }
    .hero { padding: 48px 0 40px; }
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .info-grid { grid-template-columns: 1fr; }
    .pix-payment { flex-direction: column; align-items: center; text-align: center; }
    .pix-code-wrap { flex-direction: column; }
    .main-nav { display: none; }
    .status-meta { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
    .track-input-wrap {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 8px;
    }
    .track-icon { display: none; }
    .track-input-wrap input { width: 100%; padding: 12px; }
    .btn-track { width: 100%; border-radius: var(--radius-sm); }
    .stat-number { font-size: 2rem; }
}
