:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --accent: #0f9d76;
    --accent-dark: #087a5b;
    --accent-soft: #e7f7f1;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(circle at 10% -10%, rgba(15, 157, 118, 0.16), transparent 36rem),
        radial-gradient(circle at 110% 0%, rgba(59, 130, 246, 0.12), transparent 30rem),
        var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    min-height: 100vh;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
    max-width: 1060px;
    margin: 0 auto;
    padding: 22px 22px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    color: var(--ink);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.brand:hover { text-decoration: none; }
.brand span {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    margin-left: 18px;
}

.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 28px 22px 64px;
}

.hero {
    padding: 42px 0 34px;
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.lede {
    margin: 18px 0 24px;
    max-width: 600px;
    font-size: 18px;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: #cbd5e1; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #1e293b; }
.btn.ghost { background: transparent; }
.btn:active { transform: translateY(0); }

.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.feature h2 { margin: 10px 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature .icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 20px;
    font-weight: 800;
}

.note { margin-top: 18px; }
.note h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.note p { margin: 0; color: var(--muted); }

.profile-card { max-width: 720px; margin: 12px auto 0; }
.profile-head { display: flex; align-items: center; gap: 18px; }
.avatar {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f9d76, #0b6b8f);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.profile-head h1 { margin: 0; font-size: clamp(26px, 5vw, 38px); letter-spacing: -0.04em; }
.profile-head p { margin: 4px 0 0; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: 1px;
}
.badge.available { background: #dcfce7; color: #166534; }
.badge.busy { background: #fef3c7; color: #92400e; }
.badge.offline { background: #e2e8f0; color: #475569; }

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 26px 0 18px;
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
}
.label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.price { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; margin-top: 4px; }

.qr-box { text-align: center; }
.qr { width: 180px; height: 180px; background: #fff; border-radius: 10px; padding: 4px; }
.qr img, .qr canvas { display: block; width: 100% !important; height: 100% !important; }

.bio { margin: 18px 0 0; white-space: normal; }
.link-line { word-break: break-all; margin: 18px 0 0; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.empty-state { text-align: center; padding: 40px 24px; }
.empty-state h1, .empty-state h2 { margin-top: 0; letter-spacing: -0.03em; }

.download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.download-row:last-of-type { border-bottom: 0; }

.footer {
    max-width: 1060px;
    margin: 0 auto;
    padding: 26px 22px 40px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

code {
    background: #eef2f7;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.92em;
}

@media (max-width: 640px) {
    .grid { grid-template-columns: 1fr; }
    .price-row { flex-direction: column; align-items: flex-start; }
    .qr-box { align-self: center; }
    .profile-head { align-items: flex-start; }
    .download-row { flex-direction: column; align-items: flex-start; }
}


/* Legal pages */
.legal h1 { margin-bottom: 4px; }
.legal h2 { margin-top: 26px; font-size: 20px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal .note { padding: 14px 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 14px; }
.delete-form { margin: 18px 0; }
