* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f5f5;
    color: #222;
    font-family: Tahoma, Arial, sans-serif;
}

.page {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 90px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.back-link:hover {
    color: #222;
}

.status {
    font-size: 12px;
    color: #999;
}

.hero {
    text-align: center;
    padding: 35px 20px 60px;
}

.hero-logo {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 8vw, 62px);
    letter-spacing: -2px;
}

.hero p {
    font-size: 20px;
    color: #777;
    margin: 20px auto 0;
    max-width: 620px;
    line-height: 1.5;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.big-button {
    border: 0;
    border-radius: 13px;
    padding: 15px 23px;
    font-family: inherit;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    background: #222;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: transform .15s ease, box-shadow .15s ease;
}

.big-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.section {
    margin-top: 35px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    background: white;
    border-radius: 17px;
    padding: 24px;
    min-height: 175px;
    box-shadow: 0 3px 15px rgba(0,0,0,.07);
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.11);
}

.card h2 {
    margin-top: 0;
    font-size: 22px;
}

.card p {
    color: #666;
    line-height: 1.5;
}

.card a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.card a:hover {
    text-decoration: underline;
}

.note-box {
    margin-top: 55px;
    background: #222;
    color: white;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

.note-box h2 {
    margin-top: 0;
    font-size: 28px;
}

.note-box p {
    color: #ccc;
    line-height: 1.5;
}

footer {
    margin-top: 80px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

footer a {
    color: inherit;
}

.account-page {
    width: min(640px, 100%);
    margin: 36px auto 0;
}

.account-section {
    padding: 28px;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .07);
}

.account-section h1 {
    margin: 0;
    font-size: 34px;
}

.account-section h2 {
    margin: 26px 0 10px;
    font-size: 22px;
}

.account-intro,
.account-status {
    color: #666;
}

.account-form {
    display: grid;
    gap: 9px;
    max-width: 440px;
}

.account-form label {
    font-weight: bold;
}

.account-form input:not([type="checkbox"]) {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    color: #222;
    background: #fff;
    font: inherit;
}

.account-settings {
    display: grid;
    gap: 20px;
}

.account-subsection {
    padding-top: 18px;
    border-top: 1px solid #ddd;
}

.account-subsection h3 {
    margin: 0 0 6px;
}

.account-actions {
    justify-content: flex-start;
    margin-top: 10px;
}

.account-actions .big-button {
    width: auto;
    margin: 0;
    padding: 10px 16px;
    font-size: 14px;
}

.account-secondary {
    background: #666;
}

.account-confirm-label {
    display: flex;
    align-items: center;
    gap: 9px;
}

.account-confirm-label input {
    width: auto;
}

.account-delete-button {
    background: #8f2929;
}

.account-error {
    color: #a00000 !important;
}

.account-form button:disabled {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 600px) {
    .page {
        padding-top: 18px;
    }

    .big-button {
        width: 100%;
    }

    .topbar {
        align-items: flex-start;
        gap: 10px;
    }

    .account-section {
        padding: 21px;
    }
}
