/* VERSION: v1.1 | Last updated: 2026-08-09 */
/* 60-30-10 palette: warm gray base, blue as the primary working color,
   pink reserved for genuine accents (badges, highlights) -- not spread
   everywhere, so it still reads as an accent rather than a second theme. */

:root {
    --bg: #F2F0EC;
    --card: #FFFFFF;
    --primary: #4A8CFF;
    --primary-dark: #2F6FE0;
    --accent: #F7C6E0;
    --accent-text: #8A3D63;
    --text: #2A2A28;
    --text-muted: #6B6963;
    --border: #E3E0D9;
    --error: #C0392B;
    --error-bg: #FBEAEA;
}

* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

.card {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px 32px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.card.wide { max-width: 720px; }

h1, h2 { color: var(--text); margin-top: 0; }

p.subtitle { color: var(--text-muted); font-size: 14px; margin-top: -8px; }

label {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
}

input:focus { outline: none; border-color: var(--primary); background: var(--card); }

button, .cta {
    margin-top: 24px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.15s;
}

button:hover, .cta:hover { background: var(--primary-dark); }

button.secondary {
    background: transparent;
    color: var(--error);
    text-decoration: underline;
    padding: 0;
    width: auto;
    font-size: 13px;
    font-weight: 400;
    margin-top: 0;
}

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

.error {
    color: var(--error);
    font-size: 14px;
    margin-top: 12px;
    background: var(--error-bg);
    padding: 10px 12px;
    border-radius: 6px;
}

.foot { margin-top: 20px; font-size: 13px; color: var(--text-muted); text-align: center; }

.badge, .status {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
}

.share-box { background: var(--accent); padding: 16px; border-radius: 8px; margin-top: 14px; }
.share-box code { font-size: 18px; letter-spacing: 1px; color: var(--accent-text); font-weight: 700; }

.brand { text-align: center; margin-bottom: 24px; }
.brand-logo { max-width: 200px; height: auto; }
.brand-icon { width: 52px; height: 52px; }

.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.plan { color: var(--text-muted); font-size: 14px; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--text-muted); font-weight: 600; }

/* Mobile: tighter margins/padding, no wasted top space, tables scroll
   instead of squishing illegibly */
@media (max-width: 480px) {
    .card {
        margin: 24px 12px;
        padding: 24px 20px;
        max-width: none;
    }
    .card.wide {
        margin: 16px 8px;
        padding: 18px 14px;
    }
    h1, h2 { font-size: 20px; }
    .top { flex-direction: column; align-items: flex-start; gap: 8px; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    th, td { font-size: 13px; padding: 8px 6px; }
}
