/* Shared site styles. Neutral, professional, no neon. */
* { box-sizing: border-box; }
:root {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --border: #e5e5e5;
    --border-strong: #d4d4d4;
    --text: #0a0a0a;
    --text-muted: #666666;
    --text-faint: #888888;
    --accent: #0a0a0a;
    --warn: #b00020;
    --hover-bg: #f5f5f5;
}
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
a { color: var(--text); }
a:hover { color: var(--text-muted); }

/* Header */
header.site {
    border-bottom: 1px solid var(--border);
    background: #fff;
}
header.site .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
header.site .brand {
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: -0.01em;
}
header.site nav { display: flex; gap: 20px; align-items: center; }
header.site nav a { font-size: 14px; text-decoration: none; color: var(--text-muted); }
header.site nav a:hover { color: var(--text); }
header.site nav .cta {
    color: #fff;
    background: var(--accent);
    padding: 8px 14px;
    border-radius: 6px;
}
header.site nav .cta:hover { background: #222; color: #fff; }

/* Footer */
footer.site {
    border-top: 1px solid var(--border);
    margin-top: 64px;
    padding: 24px;
    color: var(--text-faint);
    font-size: 13px;
}
footer.site .inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
footer.site p { margin: 0 0 8px; }
footer.site .disclaimer {
    max-width: 720px;
    line-height: 1.6;
}

/* Generic container */
main.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
}
main.narrow {
    max-width: 460px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Hero */
section.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 16px;
    max-width: 720px;
}
section.hero p.lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 32px;
}
section.hero .actions { display: flex; gap: 12px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--accent);
    transition: background 100ms ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #222; color: #fff; }
.btn-secondary { background: #fff; color: var(--accent); }
.btn-secondary:hover { background: var(--hover-bg); color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Feature row */
section.features {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
section.features .card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}
section.features .card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
section.features .card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Card (login/signup boxes) */
.card-form {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.card-form h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.card-form p.lead { margin: 0 0 24px; color: var(--text-muted); font-size: 14px; }
.card-form label { display: block; font-size: 13px; color: #444; margin: 12px 0 6px; }
.card-form input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: #fff;
    outline: none;
}
.card-form input:focus { border-color: var(--accent); }
.card-form button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.card-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.card-form .err { margin-top: 12px; color: var(--warn); font-size: 13px; }
.card-form .alt {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
.card-form .alt a { color: var(--text); }

/* Account dashboard */
.account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.account-stat {
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.account-stat .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 6px;
}
.account-stat .value {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.account-stat code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 16px;
    font-weight: 500;
}

/* Credentials notice (signup confirmation) */
.creds-block {
    margin-top: 20px;
    padding: 16px 18px;
    background: var(--hover-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}
.creds-block .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.creds-block .row:last-child { border-bottom: 0; }
.creds-block .row .k { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.creds-block .row .v {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
    color: var(--text);
}
.creds-block .warn-line {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 720px) {
    section.features { grid-template-columns: 1fr; }
    section.hero h1 { font-size: 36px; }
    .account-grid { grid-template-columns: 1fr; }
}
