*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: #f4f7f4;
    color: #1a2e1a;
    min-height: 100vh;
}

/* NAV */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 68px;
    background: rgba(244, 247, 244, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: #1c5c38;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg { width: 22px; height: 22px; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a2e1a;
}

.logo-sub {
    font-size: 9px;
    letter-spacing: 0.05em;
    color: #6b8a6b;
    text-transform: uppercase;
}

.btn-primary {
    background: #1c5c38;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

.btn-primary:hover { background: #174d2f; transform: translateY(-1px); }

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 72px 48px 80px;
}

.hero-left { max-width: 520px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d4e8d4;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #2e6b45;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #2e8b5c;
    border-radius: 50%;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    line-height: 1.12;
    color: #0f1f0f;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

h1 em {
    font-style: italic;
    color: #2e8b5c;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #4a6448;
    margin-bottom: 36px;
    max-width: 420px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.btn-primary-lg {
    background: #1c5c38;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(28,92,56,0.25);
}

.btn-primary-lg:hover {
    background: #174d2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28,92,56,0.3);
}

.btn-secondary {
    background: transparent;
    color: #1a2e1a;
    border: 1.5px solid #c8d8c8;
    border-radius: 100px;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover { border-color: #1c5c38; background: #f0f7f0; }

.play-icon {
    width: 20px;
    height: 20px;
    border: 1.5px solid #1a2e1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #f4f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin-left: -8px;
}

.avatar:first-child { margin-left: 0; }

.avatar-1 { background: #6b5b95; }
.avatar-2 { background: #e07b54; }
.avatar-3 { background: #4a9e6f; }
.avatar-4 { background: #d4526a; }
.avatar-more { background: #9ab89a; color: #1a2e1a; font-size: 9px; }

.proof-text { font-size: 13px; color: #4a6448; }
.proof-text strong { color: #1a2e1a; font-weight: 600; }

/* PASSPORT CARD */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.passport-wrapper {
    position: relative;
    width: 380px;
}

.passport-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    width: 100%;
}

.card-header {
    background: linear-gradient(135deg, #1c5c38 0%, #2e8b5c 100%);
    padding: 22px 24px 18px;
    color: #fff;
}

.card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 4px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.card-title em { font-style: italic; }

.last-access {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
}

.last-access-label { opacity: 0.7; font-size: 10px; }

.check-line {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    opacity: 0.9;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.passport-id { font-size: 11px; opacity: 0.65; font-family: monospace; }

.id-badges { display: flex; gap: 6px; }

.id-badge {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.card-body { padding: 16px 20px 20px; }

.data-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fbf8;
    margin-bottom: 8px;
    border: 1px solid #edf4ed;
}

.row-icon {
    width: 34px;
    height: 34px;
    background: #e8f3e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.row-info { flex: 1; }
.row-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: #7a9a7a; font-weight: 500; }
.row-value { font-size: 14px; font-weight: 600; color: #1a2e1a; }

.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-verified {
    background: #e8f7ee;
    color: #1c7a44;
}

.status-pending {
    background: #fff3e0;
    color: #e07b20;
}

.consent-toast {
    position: absolute;
    bottom: -16px;
    left: -20px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    border: 1px solid #e8f0e8;
    white-space: nowrap;
}

.toast-icon {
    width: 28px;
    height: 28px;
    background: #e8f3e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.toast-title { font-weight: 600; color: #1a2e1a; font-size: 12px; }
.toast-sub { color: #7a9a7a; font-size: 11px; }

/* FOOTER */
footer {
    border-top: 1px solid #dce8dc;
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8aaa8a;
    font-weight: 500;
}

.compliance-badges {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.comp-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4a6448;
}

.comp-badge span { font-size: 15px; }

/* TIMEOUT OVERLAY */
#timeout-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 10, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#timeout-overlay.visible {
    display: flex;
}

.timeout-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px 36px;
    max-width: 420px;
    width: calc(100% - 48px);
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
    border: 1px solid #f0e8e8;
}

.timeout-icon {
    width: 64px;
    height: 64px;
    background: #fff4f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}

.timeout-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a0a0a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.timeout-sub {
    font-size: 15px;
    color: #7a5a5a;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-close-page {
    background: #1c5c38;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
}

.btn-close-page:hover { background: #174d2f; transform: translateY(-1px); }

/* Button */
#button-check {
    display: none;
}

#button-check.visible { display: block; }

/* SUCCESS OVERLAY */
#success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 10, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#success-overlay.visible { display: flex; }

.success-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px 40px;
    max-width: 420px;
    width: calc(100% - 48px);
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
    border: 1px solid #d4eedd;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: #e8f7ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 34px;
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #0f1f0f;
    margin-bottom: 12px;
    line-height: 1.25;
}

.success-sub {
    font-size: 15px;
    color: #4a6448;
    line-height: 1.65;
    margin-bottom: 32px;
}

.btn-close-success {
    background: #1c5c38;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
}

.btn-close-success:hover { background: #174d2f; transform: translateY(-1px); }

/* ERROR OVERLAY */
#error-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 10, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#error-overlay.visible { display: flex; }

.error-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px 40px;
    max-width: 420px;
    width: calc(100% - 48px);
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
    border: 1px solid #f5d5d5;
}

.error-icon {
    width: 72px;
    height: 72px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 34px;
}

.error-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a0a0a;
    margin-bottom: 12px;
    line-height: 1.25;
}

.error-message {
    font-size: 14px;
    color: #c0392b;
    background: #fef2f2;
    border: 1px solid #f5d5d5;
    border-radius: 10px;
    padding: 12px 16px;
    line-height: 1.55;
    margin-bottom: 24px;
    word-break: break-word;
    font-family: monospace;
}

.error-sub {
    font-size: 14px;
    color: #7a5a5a;
    line-height: 1.6;
    margin-bottom: 28px;
}

.btn-close-error {
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
}

.btn-close-error:hover { background: #a93226; transform: translateY(-1px); }

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 48px 24px 60px;
        text-align: center;
    }
    h1 { font-size: 40px; }
    .hero-left { max-width: 100%; }
    .hero-desc { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .social-proof { justify-content: center; }
    .hero-right { margin-top: 24px; }
    .passport-wrapper { width: 100%; max-width: 360px; }
    nav { padding: 0 24px; }
    footer { padding: 20px 24px; gap: 16px; }
}