/* Guardee Connect showcase — standalone styles (no shared CSS). */

:root {
    --bg-1: #eef1ff;
    --bg-2: #f7f5ff;
    --ink: #1b1d29;
    --muted: #6b7186;
    --line: #e7e8f0;
    --primary: #5b5ef0;
    --primary-press: #4a4ddb;
    --ok: #1f9d57;
    --card: #ffffff;
    --soft: #f3f4fb;
    --soft-press: #e9eaf6;
    --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* author display: flex must not beat the hidden attr */

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    color: var(--ink);
    background: radial-gradient(1200px 600px at 50% -10%, var(--bg-2), var(--bg-1));
    -webkit-font-smoothing: antialiased;
}

.stage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
}

.card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(40, 44, 90, .12);
    padding: 26px 24px 22px;
}

/* brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #8a6cf0);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(91, 94, 240, .35);
}
.brand-title { font-size: 16px; font-weight: 700; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* screens */
.screen { animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lead { font-size: 22px; font-weight: 750; margin: 4px 0 8px; letter-spacing: -.2px; }
.desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 20px; }
.desc-tight { margin: 10px 0 0; text-align: center; }

/* buttons */
.btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    font-family: inherit;
    transition: background .14s ease, transform .06s ease;
    margin-top: 10px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-press); }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost:active { background: var(--soft-press); }

/* info boxes (button/QR payload explainer) */
.info {
    margin: 8px 0 4px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 11px;
}
.info-muted { background: transparent; border-style: dashed; }
.info-label { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.info-val {
    display: block;
    margin-top: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: #3a3f63;
    word-break: break-all;
    line-height: 1.45;
}

/* QR */
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 0 14px; }
.qr {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(40, 44, 90, .07);
    line-height: 0;
}
.qr img, .qr canvas { display: block; border-radius: 4px; }
.qr-status { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.qr-status::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* logged-in */
.badge-ok {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--ok);
    background: #e7f7ee;
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 16px;
}
.badge-ok .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.account {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--soft);
}
.avatar {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
}
.account-id { min-width: 0; }
.account-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.account-addr {
    display: block;
    margin-top: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    color: var(--ink);
    word-break: break-all;
    line-height: 1.4;
}
.account-mode { font-size: 12px; color: var(--muted); margin: 10px 2px 18px; }
.addr-target { font-family: ui-monospace, monospace; font-size: 12px; color: #3a3f63; }

.pay-status {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
}
.pay-status.is-ok { color: var(--ok); }
.note {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.55;
    color: #7a5b13;
    background: #fff7e6;
    border: 1px solid #f3e2bb;
    border-radius: 12px;
    padding: 10px 12px;
}

.foot { font-size: 11.5px; color: var(--muted); }
.foot span { font-family: ui-monospace, monospace; }
