@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg: #EAEEF2;
    --surface: #FFFFFF;
    --ink: #1C2541;
    --muted: #667085;
    --accent: #C1560E;
    --accent-ink: #FFF5EC;
    --success: #2E7D5B;
    --line: #D7DCE3;
    --radius: 14px;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'Public Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(28,37,65,0.06) 1px, transparent 0);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 20px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 10px;
}

h1 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}

form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 2px rgba(28,37,65,0.04);
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

label:not(:first-child) { margin-top: 18px; }

input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    font-size: 16px;
    font-family: var(--mono);
    color: var(--ink);
    background: #FBFBFA;
    transition: border-color 0.15s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

button {
    margin-top: 22px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 9px;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    transition: transform 0.1s ease, background 0.15s ease;
}

button:hover { background: #0E1730; }
button:active { transform: scale(0.99); }

button:disabled {
    opacity: 0.6;
    cursor: default;
}

#resultado { margin-top: 28px; }

.aviso {
    padding: 16px;
    border-radius: 10px;
    background: #FBEAE1;
    color: #8A3410;
    font-size: 14px;
    font-weight: 500;
}

/* --- cartao estilo etiqueta de encomenda, com borda perfurada --- */
.ticket {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(28,37,65,0.06);
}

.ticket-perf {
    height: 14px;
    background-image: radial-gradient(circle at 10px 0, var(--bg) 6px, transparent 6.5px);
    background-size: 20px 14px;
    background-repeat: repeat-x;
}

.ticket-body { padding: 8px 26px 26px; }

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 10px;
    margin-bottom: 4px;
}

.ticket-numero {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.ticket-numero strong {
    display: block;
    font-size: 17px;
    color: var(--ink);
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.stamp {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 999px;
    padding: 6px 14px;
    transform: rotate(4deg);
    white-space: nowrap;
}

.stamp.entregue { color: var(--success); border-color: var(--success); }

.cliente {
    font-size: 14px;
    color: var(--muted);
    margin: 12px 0 24px;
}

/* --- timeline / rota --- */
.rota { list-style: none; margin: 0 0 24px; padding: 0; position: relative; }

.rota li {
    position: relative;
    padding-left: 26px;
    padding-bottom: 20px;
    font-size: 14px;
}

.rota li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink);
}

.rota li::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 13px;
    bottom: -3px;
    width: 0;
    border-left: 2px dashed var(--line);
}

.rota li:last-child::after { display: none; }
.rota li:last-child::before { background: var(--accent); }

.rota .status { font-weight: 600; }
.rota .data { display: block; color: var(--muted); font-family: var(--mono); font-size: 12px; margin-top: 2px; }

.rastreio-transp {
    background: var(--accent-ink);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    margin-bottom: 20px;
}

.rastreio-transp code {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 14px;
}

.rastreio-transp a {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.itens { margin: 0; padding: 0; list-style: none; border-top: 1px dashed var(--line); }

.itens li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.itens .qtd { color: var(--muted); font-family: var(--mono); font-size: 13px; white-space: nowrap; }

@media (max-width: 480px) {
    h1 { font-size: 27px; }
    .container { padding: 40px 16px 60px; }
}
