:root {
    --bg-paper: #F5F7FA;
    --card-surface: #FFFFFF;
    --primary-slate: #2C3E50;
    --accent-copper: #C87F55;
    --accent-teal: #38B2AC;
    --border-light: #E2E8F0;
    --text-main: #2D3748;
    --text-muted: #718096;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-paper);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(#CBD5E0 1px, transparent 1px);
    background-size: 20px 20px;
}

.ledger-container {
    padding: 2rem;
    width: 100%;
    max-width: 580px;
}

.ledger-card {
    background: var(--card-surface);
    position: relative;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    /* Border hint */
    padding: 3rem 2rem;
    border-radius: 4px;
    /* Minimal radius */
}

/* Elaborate Borders using pseudo-elements or gradients */
.border-decoration {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 4px;
    background-image: repeating-linear-gradient(45deg,
            var(--accent-copper),
            var(--accent-copper) 10px,
            transparent 10px,
            transparent 20px);
    opacity: 0.6;
}

.border-decoration.top {
    top: 10px;
}

.border-decoration.bottom {
    bottom: 10px;
}

.card-content {
    border: 1px solid var(--border-light);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-holder {
    margin-bottom: 2rem;
    position: relative;
}

.logo-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(200, 127, 85, 0.1);
    /* Soft copper halo */
}

.brand-logo {
    max-width: 70px;
    height: auto;
}

.doc-header {
    margin-bottom: 2.5rem;
    width: 100%;
}

.est-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent-copper);
    display: block;
    margin-bottom: 0.5rem;
}

.doc-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-slate);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.sub-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.info-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.center-border {
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.cell-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cell-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-slate);
    font-size: 0.9rem;
}

.value-ok {
    color: var(--accent-teal);
}

.doc-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.signature-line {
    width: 200px;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 0.5rem;
    opacity: 0.6;
}

.signature-line span {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: -1.2rem;
    /* visually move label below line? or just keep above */
    text-align: center;
}

.footer-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .center-border {
        border: none;
        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
        padding: 1rem 0;
    }
}