:root {
    --pfm-ink: #132238;
    --pfm-ink-soft: #30445f;
    --pfm-muted: #65758a;
    --pfm-line: #d5deea;
    --pfm-line-strong: #b7c5d8;
    --pfm-blue: #1859c8;
    --pfm-green: #0f8d68;
    --pfm-sand: #f8f2e7;
    --pfm-bg: #f4f7fb;
    --pfm-surface: rgba(255, 255, 255, 0.9);
    --pfm-surface-strong: rgba(255, 255, 255, 0.96);
    --pfm-shadow: 0 24px 60px rgba(19, 34, 56, 0.12);
}

body {
    min-height: 100vh;
    color: var(--pfm-ink);
    background:
        radial-gradient(circle at top left, rgba(24, 89, 200, 0.12), transparent 30rem),
        radial-gradient(circle at top right, rgba(15, 141, 104, 0.08), transparent 28rem),
        linear-gradient(180deg, #fbfdff 0%, #f3f7fc 52%, #f8fbf7 100%);
    font-family: Georgia, "Times New Roman", serif;
}

p,
li,
a,
button,
input,
textarea,
select,
label,
small,
span,
.badge,
.btn,
.form-control {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: var(--pfm-blue);
}

a:hover {
    color: #0f459e;
}

.public-main {
    min-height: calc(100vh - 320px);
}

.public-header {
    z-index: 1030;
}

.public-nav {
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(213, 222, 234, 0.9);
    backdrop-filter: blur(18px);
}

.public-nav-shell {
    min-height: 78px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--pfm-blue), var(--pfm-green));
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(24, 89, 200, 0.22);
}

.brand-wording {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    color: var(--pfm-ink);
}

.brand-tagline {
    color: var(--pfm-muted);
    font-size: 0.73rem;
    letter-spacing: 0.02em;
}

.public-nav .navbar-brand {
    text-decoration: none;
}

.public-nav-toggle {
    border: 1px solid rgba(213, 222, 234, 0.95);
    border-radius: 12px;
    padding: 8px 10px;
}

.public-nav-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(24, 89, 200, 0.12);
}

.public-nav-links {
    gap: 8px;
}

.public-nav .nav-link {
    color: var(--pfm-ink-soft);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
}

.public-nav .nav-link:hover,
.public-nav .nav-link:focus {
    color: var(--pfm-blue);
    background: rgba(24, 89, 200, 0.08);
}

.public-nav-actions .btn {
    min-height: 42px;
    border-radius: 999px;
    font-weight: 700;
    padding-left: 16px;
    padding-right: 16px;
}

.btn-outline-primary {
    color: var(--pfm-blue);
    border-color: rgba(24, 89, 200, 0.3);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(24, 89, 200, 0.08);
    color: #0f459e;
    border-color: rgba(24, 89, 200, 0.45);
}

.btn-success {
    background: var(--pfm-green);
    border-color: var(--pfm-green);
}

.btn-success:hover,
.btn-success:focus {
    background: #0b7757;
    border-color: #0b7757;
}

.card {
    border-radius: 22px;
    background: var(--pfm-surface-strong);
    box-shadow: var(--pfm-shadow);
}

.card-body {
    color: var(--pfm-ink-soft);
}

.display-5,
.display-6,
h1,
h2,
h3,
h4 {
    color: var(--pfm-ink);
    font-family: Georgia, "Times New Roman", serif;
}

.lead {
    color: var(--pfm-ink-soft);
}

.text-secondary {
    color: var(--pfm-muted) !important;
}

.content-body {
    color: var(--pfm-ink-soft);
    line-height: 1.8;
    font-size: 1rem;
}

.content-body p:last-child {
    margin-bottom: 0;
}

.pagination .page-link {
    border-radius: 999px;
    margin-right: 6px;
    border-color: rgba(213, 222, 234, 0.95);
    color: var(--pfm-blue);
}

.pagination .page-item.active .page-link {
    background: var(--pfm-blue);
    border-color: var(--pfm-blue);
}

.public-footer {
    margin-top: 3rem;
    background: linear-gradient(180deg, rgba(19, 34, 56, 0.98) 0%, rgba(14, 25, 41, 0.98) 100%);
    color: rgba(244, 247, 251, 0.9);
}

.public-footer-shell {
    padding-top: 56px;
    padding-bottom: 34px;
}

.public-footer-brand p {
    color: rgba(244, 247, 251, 0.75);
    max-width: 360px;
    line-height: 1.7;
}

.public-footer .brand-name,
.public-footer .brand-tagline {
    color: #fff;
}

.public-footer-heading {
    font-size: 0.92rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(244, 247, 251, 0.72);
    margin-bottom: 14px;
}

.public-footer-links li + li {
    margin-top: 10px;
}

.public-footer-links a {
    color: rgba(244, 247, 251, 0.86);
    text-decoration: none;
}

.public-footer-links a:hover,
.public-footer-links a:focus {
    color: #fff;
    text-decoration: underline;
}

.public-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(244, 247, 251, 0.64);
}

.form-label {
    font-weight: 650;
    color: #27364d;
    margin-bottom: 6px;
}

.form-control {
    min-height: 44px;
    border-color: var(--pfm-line);
    border-radius: 12px;
}

.form-control:focus {
    border-color: var(--pfm-blue);
    box-shadow: 0 0 0 0.2rem rgba(24, 89, 200, 0.14);
}

.toast-container {
    z-index: 9999;
}

.public-shell {
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 460px);
    gap: 2rem;
    align-items: stretch;
    padding: 3.5rem 0 4.5rem;
}

.auth-copy,
.auth-card,
.auth-card-sm,
.auth-card-md {
    position: relative;
    border: 1px solid rgba(213, 222, 234, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--pfm-shadow);
}

.auth-copy,
.auth-card {
    padding: 2rem;
}

.auth-copy {
    background:
        linear-gradient(160deg, rgba(24, 89, 200, 0.96), rgba(15, 141, 104, 0.9)),
        linear-gradient(180deg, rgba(19, 34, 56, 1), rgba(19, 34, 56, 0.92));
    color: #fff;
    overflow: hidden;
}

.auth-copy::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -5rem;
    width: 15rem;
    height: 15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-copy h1 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

.auth-copy > p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.03rem;
    line-height: 1.8;
    max-width: 56ch;
}

.auth-points {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

.auth-point {
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-point strong {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.94rem;
    letter-spacing: 0.02em;
}

.auth-point span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card h2 {
    margin-bottom: 0.4rem;
}

.auth-card .subtitle {
    color: var(--pfm-muted);
    margin-bottom: 1.5rem;
}

.auth-card-sm,
.auth-card-md {
    margin: 3rem auto 4rem;
    padding: 2rem;
}

.auth-card-sm {
    max-width: 420px;
}

.auth-card-md {
    max-width: 460px;
}

.auth-switch {
    margin: 1.25rem 0 0;
    color: var(--pfm-muted);
    text-align: center;
}

.auth-switch a {
    color: var(--pfm-blue);
}

.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.section-heading {
    max-width: 760px;
}

.home-mini-card {
    height: 100%;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(213, 222, 234, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--pfm-ink-soft);
}

.home-mini-card strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--pfm-ink);
}

.feature-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(213, 222, 234, 0.82);
}

.calculator-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(213, 222, 234, 0.82);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
}

.feature-card::before,
.calculator-card::before,
.feature-detail-shell::before,
.feature-side-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--pfm-blue), var(--pfm-green));
}

.feature-card-kicker,
.feature-label {
    color: var(--pfm-green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-card h2 a {
    color: var(--pfm-ink);
}

.feature-card h2 a:hover,
.feature-card h2 a:focus {
    color: var(--pfm-blue);
}

.calculator-card h2 a {
    color: var(--pfm-ink);
}

.calculator-card h2 a:hover,
.calculator-card h2 a:focus {
    color: var(--pfm-blue);
}

.calculator-card-link {
    color: var(--pfm-blue);
    font-weight: 700;
}

.feature-detail-shell,
.feature-side-card,
.calculator-tool-shell {
    position: relative;
    overflow: hidden;
}

.calculator-tool-shell {
    border: 1px solid rgba(213, 222, 234, 0.82);
}

.calculator-result-card {
    padding: 1rem;
    border: 1px solid rgba(213, 222, 234, 0.85);
    border-radius: 0.75rem;
    background: rgba(248, 251, 255, 0.92);
}

.calculator-result-card span,
.calculator-result-card small {
    display: block;
    color: var(--pfm-muted);
}

.calculator-result-card strong {
    display: block;
    margin: 0.3rem 0;
    color: var(--pfm-ink);
    font-size: 1.35rem;
}

.feature-detail-block + .feature-detail-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(213, 222, 234, 0.85);
}

.feature-side-stack {
    display: grid;
    gap: 1rem;
}

.side-link-list li + li {
    margin-top: 0.8rem;
}

.side-link-list a {
    color: var(--pfm-ink);
    font-weight: 600;
    text-decoration: none;
}

.side-link-list a:hover,
.side-link-list a:focus {
    color: var(--pfm-blue);
    text-decoration: underline;
}

.home-checklist,
.content-list {
    display: grid;
    gap: 0.85rem;
}

.home-checklist li,
.content-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--pfm-ink-soft);
}

.home-checklist li::before,
.content-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pfm-blue), var(--pfm-green));
}

.home-report-card,
.pricing-cta-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.trust-content p + p {
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    .public-nav-shell {
        min-height: 72px;
    }

    .public-nav .navbar-collapse {
        margin-top: 16px;
        padding: 18px;
        border: 1px solid rgba(213, 222, 234, 0.95);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 20px 44px rgba(19, 34, 56, 0.1);
    }

    .public-nav-links {
        margin-bottom: 14px;
    }

    .public-nav .nav-link {
        padding-left: 12px;
        padding-right: 12px;
    }

    .public-nav-actions {
        width: 100%;
    }

    .public-nav-actions .btn {
        width: 100%;
    }

    .auth-page {
        grid-template-columns: 1fr;
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }

    .auth-copy,
    .auth-card {
        padding: 1.5rem;
    }

    .feature-detail-block + .feature-detail-block {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(24, 89, 200, 0.12), transparent 22rem),
            linear-gradient(180deg, #fbfdff 0%, #f3f7fc 58%, #f8fbf7 100%);
    }

    .brand-wording {
        gap: 2px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.68rem;
    }

    .card {
        border-radius: 18px;
    }

    .public-shell {
        width: min(100% - 1.25rem, 100%);
    }

    .auth-copy,
    .auth-card,
    .auth-card-sm,
    .auth-card-md {
        border-radius: 18px;
    }

    .auth-card-sm,
    .auth-card-md {
        margin-top: 2rem;
        margin-bottom: 3rem;
        padding: 1.5rem;
    }

    .public-footer-shell {
        padding-top: 42px;
        padding-bottom: 28px;
    }

    .public-footer-brand p {
        max-width: none;
    }
}
