/*
 * Styles shared by the public (logged-out) pages: landing, pricing, refund
 * policy and contact. Loaded on top of auth.css on the landing page, so a few
 * auth.css rules that assume a single non-scrolling viewport are undone here.
 */

/* --- undo the fixed-viewport assumptions of auth.css on the landing page --- */
body.public-page {
    overflow: auto;
    height: auto;
    display: block;
    background-color: #ffffff;
    color: #2f2f2f;
}

body.public-page .login-section {
    height: auto;
    min-height: 560px;
}

body.public-page .login-form {
    padding: 40px 20px;
}

body.public-page .background-image {
    min-height: 560px;
}

/* --- top nav on the landing page, gives reviewers the policy links up front --- */
.public-topnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px 18px;
    padding: 14px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0ece5;
}

.public-topnav a {
    color: #6a5f4f;
    text-decoration: none;
}

.public-topnav a:hover {
    color: #b56f00;
    text-decoration: underline;
}

/* --- pitch card sitting over the hero image --- */
.hero-pitch {
    max-width: 460px;
    margin: 40px;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.hero-pitch h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #4a3f2f;
    margin-bottom: 10px;
}

.hero-pitch p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #4f4f4f;
    margin-bottom: 14px;
}

.hero-pitch .hero-meta {
    font-size: 0.85rem;
    color: #6f6f6f;
    margin: 0;
}

/* --- generic public section scaffolding --- */
.public-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px;
}

.public-section--tint {
    background-color: #faf8f5;
    max-width: none;
}

.public-section--tint > .public-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.public-section h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a3f2f;
}

.public-section .section-lead {
    font-size: 1.05rem;
    color: #5f5f5f;
    margin-bottom: 32px;
    max-width: 760px;
}

/* --- product feature grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-item {
    background: #ffffff;
    border: 1px solid #ece7df;
    border-radius: 10px;
    padding: 20px;
}

.feature-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #4a3f2f;
}

.feature-item p {
    font-size: 0.92rem;
    color: #6a6a6a;
    margin: 0;
}

/* --- pricing cards --- */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e4ded4;
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.plan-card--highlight {
    border-color: #ff9800;
    box-shadow: 0 6px 24px rgba(255, 152, 0, 0.15);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff9800;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
}

.plan-name {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #4a3f2f;
}

.plan-tagline {
    font-size: 0.9rem;
    color: #757575;
    min-height: 40px;
    margin-bottom: 16px;
}

.plan-price {
    border-top: 1px solid #f0ece5;
    border-bottom: 1px solid #f0ece5;
    padding: 16px 0;
    margin-bottom: 18px;
}

.plan-amount {
    font-size: 1.9rem;
    font-weight: 600;
    color: #2f2f2f;
}

.plan-period {
    font-size: 0.95rem;
    color: #757575;
    margin-left: 4px;
}

.plan-alt-price {
    font-size: 0.85rem;
    color: #8a8a8a;
    margin-top: 4px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.plan-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    font-size: 0.92rem;
    color: #4f4f4f;
}

.plan-features li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: 700;
}

.plan-note {
    font-size: 0.82rem;
    color: #8a8a8a;
    margin-bottom: 16px;
}

.plan-cta {
    margin-top: auto;
}

.plan-btn {
    display: block;
    text-align: center;
    background-color: #ff9800;
    color: #ffffff;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.plan-btn:hover {
    background-color: #e88a00;
    color: #ffffff;
}

.plan-btn--ghost {
    background-color: transparent;
    color: #b56f00;
    border: 1px solid #ffbe63;
}

.plan-btn--ghost:hover {
    background-color: #fff5e6;
    color: #b56f00;
}

.plan-disclaimer {
    margin-top: 28px;
    font-size: 0.86rem;
    color: #757575;
    max-width: 820px;
}

/* --- company / legal block --- */
.company-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.company-block h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9a8f7f;
    margin-bottom: 8px;
}

.company-block address,
.company-block p {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4f4f4f;
    margin: 0;
}

.company-block a {
    color: #b56f00;
}

/* --- public footer --- */
.public-footer {
    background-color: #4a3f2f;
    color: #d8d0c4;
    padding: 28px 24px;
    font-size: 0.88rem;
}

.public-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: space-between;
    align-items: center;
}

.public-footer a {
    color: #f0c88a;
    text-decoration: none;
}

.public-footer a:hover {
    text-decoration: underline;
}

.public-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

/* --- policy page readability --- */
.policy-body h5 {
    margin-top: 26px;
}

@media (max-width: 768px) {
    .public-section {
        padding: 36px 18px;
    }

    .plan-tagline {
        min-height: 0;
    }
}
