/* Shared "ledger" theme for public-facing pages (marketing + anonymous auth flow). */

:root {
    --pub-ink: #16233a;
    --pub-ink-2: #223252;
    --pub-paper: #eee6d3;
    --pub-paper-2: #fffdf7;
    --pub-brass: #b8863b;
    --pub-brass-dark: #96692c;
    --pub-ember: #9b3a32;
    --pub-muted-on-paper: #5b6b82;
    --pub-muted-on-ink: #b9c3d2;
}

.pub-theme {
    min-height: 100vh;
    background: rgb(238, 230, 211);
    font-family: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--pub-ink);
}

.pub-theme h1,
.pub-theme h2,
.pub-theme h3 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

.pub-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Bands */

.pub-band-ink {
    background: linear-gradient(160deg, var(--pub-ink) 0%, var(--pub-ink-2) 100%);
    color: #fff;
    padding: 3.25rem 0;
}

.pub-band-ink p {
    color: var(--pub-muted-on-ink);
}

.pub-band-paper {
    background: var(--pub-paper);
    color: var(--pub-ink);
    padding: 3.25rem 0;
}

.pub-band-title {
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.pub-band-sub {
    font-size: 1.05rem;
    max-width: 60ch;
    margin: 0;
}

/* Buttons */

.pub-cta,
.pub-cta-outline {
    display: inline-block;
    font-family: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    border: 1.5px solid transparent;
    transition: background-color 150ms ease, color 150ms ease;
}

.pub-cta {
    background: var(--pub-brass);
    color: var(--pub-ink);
    border-color: var(--pub-brass);
}

.pub-cta:hover {
    background: var(--pub-brass-dark);
    border-color: var(--pub-brass-dark);
    color: #fff;
}

.pub-cta-outline {
    background: transparent;
    color: inherit;
    border-color: var(--pub-brass-dark);
}

.pub-cta-outline:hover {
    background: var(--pub-brass-dark);
    border-color: var(--pub-brass-dark);
    color: #fff;
}

.pub-cta:focus-visible,
.pub-cta-outline:focus-visible {
    outline: 3px solid var(--pub-brass);
    outline-offset: 3px;
}

.pub-cta-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-check:checked + .pub-cta-outline {
    background: var(--pub-brass);
    border-color: var(--pub-brass);
    color: var(--pub-ink);
}

/* Cards */

.pub-card {
    background: var(--pub-paper-2);
    border: 1px solid rgba(184, 134, 59, 0.35);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(22, 35, 58, 0.12);
    padding: 1.75rem;
}

.pub-card hr {
    border-color: rgba(184, 134, 59, 0.35);
}

.pub-card .form-control:focus {
    border-color: var(--pub-brass);
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 59, 0.25);
}

/* Auth pages: login, register, forgot password, resend confirmation */

.pub-auth-page {
    min-height: calc(100vh - 56px);
    background: linear-gradient(160deg, var(--pub-ink) 0%, var(--pub-ink-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
}

.pub-auth-card {
    width: 100%;
    max-width: 440px;
}

.pub-auth-card h2 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

/* Comparison table */

.pub-table {
    width: 100%;
    border-collapse: collapse;
}

.pub-table th,
.pub-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-top: 1px solid rgba(184, 134, 59, 0.35);
}

.pub-table thead th {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    border-top: none;
    border-bottom: 2px solid var(--pub-brass);
}

.pub-table td:not(:first-child),
.pub-table th:not(:first-child) {
    text-align: center;
}

/* Ledger-style rows, used for feature comparisons and short lists */

.pub-ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(184, 134, 59, 0.35);
}

.pub-ledger-row:last-child {
    border-bottom: 1px solid rgba(184, 134, 59, 0.35);
}
