:root {
    --ink: #2b2013;
    --muted: #8a7c62;
    --paper: #fbf6ea;
    --kraft: #e3d3ac;
    --kraft-dark: #c7ac74;
    --red: #b23b2e;
    --action: #1c7a44;
    --action-dark: #145c33;
    --border: #e7ddc4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #fffdf8 0%, #efe6d3 60%, #e3d5ac 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: 'Poppins', sans-serif;
    border: 0 none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    background-image: none;
}

.wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 22px 18px 40px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.top-bar svg {
    width: 14px;
    height: 14px;
    fill: var(--muted);
}

/* Envelope card */
.envelope {
    position: relative;
    background: linear-gradient(180deg, var(--kraft) 0%, var(--kraft-dark) 100%);
    border-radius: 10px;
    padding: 22px 20px 26px;
    box-shadow: 0 18px 40px rgba(90, 68, 25, 0.25);
    overflow: hidden;
}

.envelope::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    border-left: 230px solid transparent;
    border-right: 230px solid transparent;
    border-top: 90px solid rgba(255, 255, 255, 0.16);
}

.stamp-ribbon {
    position: absolute;
    top: 18px;
    right: -46px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 50px;
    transform: rotate(38deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.postmark {
    width: 54px;
    height: 54px;
    border: 2px dashed rgba(43, 32, 19, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(43, 32, 19, 0.55);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 14px;
}

.postmark span {
    display: block;
}

.postmark .big {
    font-size: 13px;
}

.addr-block {
    background: var(--paper);
    border-radius: 8px;
    padding: 16px 16px 14px;
    position: relative;
    z-index: 1;
}

.addr-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.addr-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 2px;
}

.addr-sub {
    font-size: 13px;
    color: var(--muted);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}

.spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(43, 32, 19, 0.18);
    border-top-color: var(--red);
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--action);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.status-row.done .spinner {
    display: none;
}

.status-row.done .check-icon {
    display: flex;
}

.headline {
    text-align: center;
    margin: 26px 0 6px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--action-dark);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.headline.show {
    opacity: 1;
    transform: translateY(0);
}

.reveal-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.reveal-zone.show {
    opacity: 1;
    transform: translateY(0);
}

.arrow {
    width: 46px;
    height: 32px;
    flex-shrink: 0;
}

.arrow svg {
    width: 100%;
    height: 100%;
    fill: var(--action);
}

.arrow.left svg {
    transform: scaleX(-1);
}

.open-btn {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    animation: pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

.open-btn svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    margin-left: 3px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.methods {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.methods.show {
    opacity: 1;
    transform: translateY(0);
}

.method-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 8px 10px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.method-card:active {
    transform: scale(0.96);
}

.method-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
}

.method-icon svg {
    width: 100%;
    height: 100%;
}

.method-label {
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.method-delay {
    font-size: 9.5px;
    color: var(--muted);
    line-height: 1.3;
}

.cta-btn {
    display: block;
    width: 100%;
    margin-top: 22px;
    background: var(--action);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(28, 122, 68, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s, background 0.2s;
}

.cta-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.cta-btn:active {
    background: var(--action-dark);
}

.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}

.trust-row.show {
    opacity: 1;
    transform: translateY(0);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
}

.trust-item svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.trust-divider {
    width: 1px;
    height: 12px;
    background: var(--border);
    flex-shrink: 0;
}

.disclaimer {
    max-width: 460px;
    margin: 20px auto 0;
    padding: 0 10px;
    font-size: 10.5px;
    line-height: 1.5;
    color: #9c9c9c;
    text-align: center;
}