/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: #1a1a1a;
    background: #FAF8F5;
    padding: 0;
    margin: 0;
}

/* Container */
.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

@media (min-width: 640px) {
    .container {
        padding: 5rem 2rem 6rem;
    }
}

/* Typography */
h1, h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: normal;
    color: #1a1a1a;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.375rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

p {
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.625rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.meta {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

/* Links */
a {
    color: #1B4332;
    text-decoration: none;
    border-bottom: 1px solid #1B4332;
}

a:hover {
    color: #0f2418;
    border-bottom-color: #0f2418;
}

/* Lists */
ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
}

li:last-child {
    margin-bottom: 0;
}

/* Sections */
header {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #d0d0d0;
}

section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #d0d0d0;
}

section:last-of-type {
    border-bottom: none;
    padding-bottom: 2rem;
}

/* Steps section */
.steps p {
    position: relative;
    padding-left: 3.5rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: -0.125rem;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 2.5rem;
    line-height: 1;
    color: #1B4332;
    font-weight: normal;
}

.steps strong {
    font-weight: 600;
}

/* Footer and contact details */
footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #d0d0d0;
}

.contact-details {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #1a1a1a;
}

.contact-details strong {
    font-weight: 500;
    color: #1a1a1a;
}

/* Strong/bold text */
strong {
    font-weight: 600;
}

/* Invoice diagram */
.invoice-diagram {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 3rem auto 0;
    height: auto;
}

@media (min-width: 640px) {
    .invoice-diagram {
        margin-top: 3.5rem;
    }
}

/* Send data section */
.send-data-block {
    background: #ffffff;
    border: 1px solid #1B4332;
    padding: 2rem 1.5rem;
    margin: 0 1rem;
}

.send-data-block h2 {
    margin-bottom: 1.25rem;
}

.email-link {
    font-size: 1.125rem;
    color: #1B4332;
    border-bottom: 1px solid #1B4332;
}

.email-link:hover {
    color: #0f2418;
    border-bottom-color: #0f2418;
}

@media (min-width: 640px) {
    .send-data-block {
        padding: 2.5rem 2.25rem;
        margin: 0 2rem;
    }

    .email-link {
        font-size: 1.1875rem;
    }
}

/* Desktop refinements */
@media (min-width: 768px) {
    body {
        font-size: 19px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1.875rem;
    }
}
