:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f4f7fb;
    color: #172033;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            #dcecff,
            transparent 35rem
        ),
        #f4f7fb;
}

button,
textarea {
    font: inherit;
}

.container {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 32px;
}

.hero {
    margin-bottom: 32px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #2167d5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

h1 {
    margin: 0;
    font-size: clamp(38px, 8vw, 64px);
    letter-spacing: -0.055em;
}

.hero > p:last-child {
    max-width: 590px;
    margin-top: 18px;
    color: #5b6577;
    font-size: 18px;
    line-height: 1.65;
}

.card {
    margin-bottom: 20px;
    padding: 26px;
    border: 1px solid #dfe5ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 16px 45px
        rgba(36, 55, 90, 0.08);
}

h2 {
    margin: 0 0 18px;
    font-size: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

textarea {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e2;
    border-radius: 12px;
    outline: none;
    resize: vertical;
}

textarea:focus {
    border-color: #2167d5;
    box-shadow:
        0 0 0 4px
        rgba(33, 103, 213, 0.12);
}

button {
    margin-top: 14px;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: #2167d5;
    color: white;
    font-weight: 750;
    cursor: pointer;
}

button:hover {
    filter: brightness(0.94);
}

button.danger {
    margin: 0;
    background: #fff0f0;
    color: #b3261e;
}

.section-heading,
.note,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-heading span {
    color: #758096;
    font-size: 14px;
}

.notes {
    display: grid;
    gap: 12px;
}

.note {
    padding: 15px;
    border: 1px solid #e4e8ef;
    border-radius: 12px;
}

.note p {
    margin: 0 0 8px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.note small {
    color: #7a8496;
}

.empty {
    padding: 24px;
    border-radius: 12px;
    background: #f5f7fa;
    color: #697386;
    text-align: center;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 10px;
}

.alert-success {
    background: #e7f8ee;
    color: #12652d;
}

.alert-error {
    background: #fff0f0;
    color: #a61b1b;
}

footer {
    padding-top: 16px;
    color: #778197;
    font-size: 13px;
}

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

    .card {
        padding: 20px;
    }

    .note {
        align-items: flex-start;
    }
}
