*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --mel-paper: #fbfcfb;
    --mel-coal: #3d4448;
    --mel-coal-soft: #4b5357;
    --mel-mint: #dcebe4;
    --mel-mint-pale: #eef5f1;
    --mel-sage: #7fa597;
    --mel-text: #2a3033;
    --mel-quiet: #4f585c;
    --mel-line: #dde4e1;
    --mel-card: #ffffff;
    --mel-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mel-round-s: 10px;
    --mel-round-m: 12px;
    --mel-lift: 0 3px 12px rgba(42, 48, 51, .05);
}

html { -webkit-text-size-adjust: 100%; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--mel-paper);
    color: var(--mel-text);
    font-family: var(--mel-font);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--mel-coal);
    text-decoration: underline;
    text-decoration-color: var(--mel-sage);
    text-underline-offset: 3px;
}
a:hover { color: var(--mel-text); text-decoration-color: var(--mel-coal); }

/* header */
.mel-head {
    background: var(--mel-mint);
    border-bottom: 1px solid rgba(127, 165, 151, .55);
    padding: 16px 20px;
}
.mel-head__inner {
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}
.mel-head__brand {
    display: inline-block;
    color: var(--mel-coal);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
}
.mel-head__brand:hover { color: var(--mel-text); }

/* page top */
.mel-paper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 18px 56px;
}
.mel-paper__top {
    margin-bottom: 26px;
    text-align: center;
}
.mel-paper__title {
    color: var(--mel-coal);
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.25;
}
.mel-paper__lead {
    max-width: 620px;
    margin: 12px auto 0;
    color: var(--mel-quiet);
}
.mel-paper__stamp {
    display: inline-block;
    margin-top: 16px;
    padding: 5px 14px;
    border: 1px solid rgba(127, 165, 151, .6);
    border-radius: 999px;
    background: var(--mel-mint-pale);
    color: var(--mel-coal);
    font-size: 13px;
    font-weight: 600;
}

/* short checklist */
.mel-brief {
    max-width: 560px;
    margin: 22px auto 0;
    padding: 16px 20px;
    text-align: left;
    background: var(--mel-mint);
    border-radius: var(--mel-round-m);
}
.mel-brief__label {
    margin-bottom: 8px;
    color: var(--mel-coal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mel-brief__list { list-style: none; }
.mel-brief__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 6px;
    color: var(--mel-text);
    font-weight: 500;
}
.mel-brief__list li:last-child { margin-bottom: 0; }
.mel-brief__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .14em;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mel-coal);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

/* checklist sections */
.mel-check {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px 22px 20px 18px;
    background: var(--mel-card);
    border: 1px solid var(--mel-line);
    border-radius: var(--mel-round-m);
    box-shadow: var(--mel-lift);
}
.mel-check:last-of-type { margin-bottom: 0; }
.mel-check__icon {
    display: flex;
    justify-content: center;
    padding-top: 2px;
    border-right: 1px solid var(--mel-line);
    padding-right: 14px;
}
.mel-check__svg {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
}
.mel-check__body { min-width: 0; }
.mel-check__title {
    margin-bottom: 8px;
    color: var(--mel-coal);
    font-size: clamp(18px, 2.3vw, 21px);
    font-weight: 700;
    line-height: 1.35;
}
.mel-check__body p {
    margin-bottom: 10px;
    color: var(--mel-quiet);
}
.mel-check__body p:last-child { margin-bottom: 0; }
.mel-check__body strong { color: var(--mel-text); }
.mel-check__body ul,
.mel-check__body ol {
    margin: 0 0 10px;
    list-style: none;
    color: var(--mel-quiet);
}
.mel-check__body ul:last-child,
.mel-check__body ol:last-child { margin-bottom: 0; }
.mel-check__body li {
    position: relative;
    margin-bottom: 7px;
    padding-left: 26px;
}
.mel-check__body ul > li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    top: 0;
    color: var(--mel-sage);
    font-weight: 700;
}
.mel-check__body ol { counter-reset: melSeq; }
.mel-check__body ol > li { counter-increment: melSeq; padding-left: 34px; }
.mel-check__body ol > li::before {
    content: counter(melSeq);
    position: absolute;
    left: 0;
    top: .2em;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mel-sage);
    border-radius: 50%;
    color: var(--mel-coal);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* note inside a section */
.mel-note {
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid rgba(127, 165, 151, .55);
    border-radius: var(--mel-round-s);
    background: var(--mel-mint-pale);
}
.mel-note:last-child { margin-bottom: 0; }
.mel-check__body .mel-note p { margin: 0; color: var(--mel-text); font-size: 15px; }

/* key / value rows */
.mel-rows {
    margin: 10px 0;
    border: 1px solid var(--mel-line);
    border-radius: var(--mel-round-s);
    overflow: hidden;
}
.mel-rows:last-child { margin-bottom: 0; }
.mel-rows__item {
    display: grid;
    grid-template-columns: minmax(130px, 36%) 1fr;
    gap: 4px 14px;
    padding: 11px 14px;
    font-size: 15px;
}
.mel-rows__item + .mel-rows__item { border-top: 1px solid var(--mel-line); }
.mel-rows__item:nth-child(odd) { background: #f7faf8; }
.mel-rows__key { color: var(--mel-coal); font-weight: 600; }
.mel-rows__val { color: var(--mel-quiet); }

/* chips */
.mel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}
.mel-chips__item {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--mel-mint);
    color: var(--mel-coal);
    font-size: 13px;
    font-weight: 600;
}

/* grid of who pays */
.mel-matrix {
    width: 100%;
    margin: 10px 0 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--mel-line);
    border-radius: var(--mel-round-s);
    overflow: hidden;
    font-size: 15px;
}
.mel-matrix th {
    padding: 11px 14px;
    background: var(--mel-mint);
    color: var(--mel-coal);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}
.mel-matrix td {
    padding: 10px 14px;
    border-top: 1px solid var(--mel-line);
    color: var(--mel-quiet);
    vertical-align: top;
}
.mel-matrix td:last-child { color: var(--mel-text); font-weight: 600; }

.mel-paper__end {
    margin-top: 22px;
    padding: 16px 18px;
    border-top: 1px solid var(--mel-line);
    color: var(--mel-quiet);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 560px) {
    .mel-paper { padding: 30px 14px 46px; }
    .mel-check {
        grid-template-columns: 30px 1fr;
        gap: 12px;
        padding: 16px 14px 16px 12px;
    }
    .mel-check__icon { padding-right: 10px; }
    .mel-check__svg { width: 22px; height: 22px; }
    .mel-rows__item { grid-template-columns: 1fr; }
    .mel-matrix { font-size: 14px; }
    .mel-matrix th,
    .mel-matrix td { padding: 9px 10px; }
    .mel-brief { padding: 14px 16px; }
}

/* footer */
.mel-foot {
    margin-top: auto;
    flex-shrink: 0;
    padding: 26px 20px;
    background: var(--mel-mint-pale);
    border-top: 1px solid var(--mel-mint);
    color: var(--mel-quiet);
    text-align: center;
}
.mel-foot__inner { max-width: 880px; margin: 0 auto; }
.mel-foot__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-bottom: 14px;
}
.mel-foot__links a { font-size: 13px; }
.mel-foot__copy { margin-bottom: 10px; font-size: 12px; }
.mel-foot__legal {
    max-width: 740px;
    margin: 0 auto;
    font-size: 11.5px;
    line-height: 1.7;
}
