/* ============================================================
   RanchPad Public Site Styles
   ============================================================
   Shares design tokens with app.css for consistency.
   ============================================================ */

:root {
    --rp-primary: #2d6a4f;
    --rp-primary-dark: #1b4332;
    --rp-primary-darker: #14291f;
    --rp-accent: #52b788;
    --rp-accent-light: #95d5b2;
    --rp-bg: #f4f6f8;
    --rp-radius: 0.75rem;
    --rp-radius-sm: 0.5rem;
    --rp-text: #333;
    --rp-text-muted: #888;
    --rp-surface: #fff;
    --rp-border: #eee;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--rp-text);
}

/* ── Navigation ────────────────────────────────────── */

.rp-public-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    border-bottom: 1px solid transparent;
}

.rp-public-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: #eee;
}

.rp-public-nav .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.rp-public-nav .nav-link:hover,
.rp-public-nav .nav-link.active {
    color: var(--rp-primary);
}

/* ── Buttons ───────────────────────────────────────── */

.btn-rp-public {
    background: var(--rp-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--rp-radius-sm);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-rp-public:hover {
    background: var(--rp-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-outline-rp {
    border: 2px solid var(--rp-primary);
    color: var(--rp-primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--rp-radius-sm);
    font-weight: 600;
    background: transparent;
    transition: all 0.2s;
}

.btn-outline-rp:hover {
    background: var(--rp-primary);
    color: white;
}

.btn-rp-lg {
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
}

.btn-rp-white {
    background: white;
    color: var(--rp-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--rp-radius-sm);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-rp-white:hover {
    background: #f0f0f0;
    color: var(--rp-primary-dark);
    transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────────── */

.rp-hero {
    background: linear-gradient(135deg, var(--rp-primary-darker) 0%, var(--rp-primary) 50%, var(--rp-accent) 100%);
    padding: 10rem 0 6rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.rp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.rp-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    position: relative;
}

.rp-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    position: relative;
}

.rp-hero-preview {
    width: 100%;
    height: 340px;
    border-radius: var(--rp-radius);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ── Stats Bar ─────────────────────────────────────── */

.rp-stats-bar {
    background: white;
    border-radius: var(--rp-radius);
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.rp-stat-item {
    text-align: center;
    padding: 0.5rem;
}

.rp-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rp-primary);
    line-height: 1;
}

.rp-stat-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ── Feature Cards ─────────────────────────────────── */

.rp-feature-card {
    background: white;
    border-radius: var(--rp-radius);
    padding: 2rem;
    height: 100%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.rp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--rp-accent-light);
}

.rp-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1), rgba(82, 183, 136, 0.1));
    color: var(--rp-primary);
}

.rp-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
}

.rp-feature-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.rp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.rp-feature-list li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #555;
}

.rp-feature-list li::before {
    content: '\2713';
    color: var(--rp-accent);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ── Sections ──────────────────────────────────────── */

.rp-section {
    padding: 5rem 0;
}

.rp-section-alt {
    background: var(--rp-bg);
}

.rp-section-green {
    background: linear-gradient(135deg, var(--rp-primary-dark), var(--rp-primary));
    color: white;
}

.rp-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 0.5rem;
}

.rp-section-subtitle {
    font-size: 1.1rem;
    color: #888;
    max-width: 600px;
}

/* ── How it Works ──────────────────────────────────── */

.rp-step {
    text-align: center;
    padding: 1rem;
}

.rp-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rp-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.rp-step h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rp-step p {
    color: #666;
    font-size: 0.9rem;
}

/* ── Market Cards ──────────────────────────────────── */

.rp-market-card {
    background: white;
    border-radius: var(--rp-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #eee;
    height: 100%;
    transition: all 0.3s ease;
}

.rp-market-card:hover {
    border-color: var(--rp-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.rp-market-flag {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* ── Pricing Cards ─────────────────────────────────── */

.rp-pricing-card {
    background: white;
    border-radius: var(--rp-radius);
    padding: 2rem;
    height: 100%;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    position: relative;
}

.rp-pricing-card.featured {
    border-color: var(--rp-primary);
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(45, 106, 79, 0.15);
}

.rp-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rp-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.rp-pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
}

.rp-pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rp-primary);
    line-height: 1;
}

.rp-pricing-period {
    font-size: 0.85rem;
    color: #999;
}

.rp-pricing-desc {
    font-size: 0.9rem;
    color: #666;
}

.rp-pricing-features {
    list-style: none;
    padding: 0;
}

.rp-pricing-features li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
}

.rp-pricing-features li:last-child {
    border-bottom: none;
}

.rp-pricing-features li i {
    margin-right: 0.5rem;
}

.rp-pricing-features li i.bi-check-circle-fill {
    color: var(--rp-accent);
}

.rp-pricing-features li i.bi-x-circle {
    color: #ccc;
}

/* ── Comparison Table ──────────────────────────────── */

.rp-comparison-table th,
.rp-comparison-table td {
    text-align: center;
    vertical-align: middle;
    padding: 0.6rem;
    font-size: 0.85rem;
}

.rp-comparison-table th:first-child,
.rp-comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.rp-comparison-table thead th {
    background: var(--rp-primary);
    color: white;
    font-weight: 600;
}

.rp-comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* ── CTA ───────────────────────────────────────────── */

.rp-cta {
    background: linear-gradient(135deg, var(--rp-primary-darker), var(--rp-primary));
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.rp-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

/* ── Footer ────────────────────────────────────────── */

.rp-footer {
    background: #1a1a2e;
    padding: 3rem 0 1.5rem;
}

.rp-footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.rp-footer-link:hover {
    color: var(--rp-accent-light);
}

/* ── Cookie Banner ─────────────────────────────────── */

.rp-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--rp-primary-dark);
    color: white;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* ── Auth Pages ────────────────────────────────────── */

.rp-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rp-bg) 0%, #e8f5e9 100%);
    padding: 100px 1rem 2rem;
}

.rp-auth-card {
    background: white;
    border-radius: var(--rp-radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.rp-auth-card-wide {
    max-width: 560px;
}

.rp-auth-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #222;
}

.rp-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #999;
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.rp-auth-divider::before,
.rp-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.rp-form-control {
    border: 2px solid #e8e8e8;
    border-radius: var(--rp-radius-sm);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.rp-form-control:focus {
    border-color: var(--rp-accent);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: var(--rp-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    width: 100%;
    border: 2px solid #e8e8e8;
    background: white;
    color: #333;
    transition: all 0.2s;
}

.btn-social:hover {
    border-color: #ccc;
    background: #fafafa;
}

/* ── Feature Detail (Features Page) ────────────────── */

.rp-feature-detail {
    padding: 4rem 0;
}

.rp-feature-detail:nth-child(even) {
    background: var(--rp-bg);
}

.rp-feature-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1), rgba(82, 183, 136, 0.15));
    color: var(--rp-primary);
    margin-bottom: 1rem;
}

/* ── About Page ────────────────────────────────────── */

.rp-value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    height: 100%;
}

.rp-value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1), rgba(82, 183, 136, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--rp-primary);
    margin: 0 auto 1rem;
}

/* ── Contact Page ──────────────────────────────────── */

.rp-contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rp-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(45, 106, 79, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--rp-primary);
    flex-shrink: 0;
}

/* ── Module Grid ───────────────────────────────────── */

.rp-module-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rp-radius-sm);
    background: white;
    border: 1px solid #eee;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.rp-module-item:hover {
    border-color: var(--rp-accent-light);
    background: #f0faf4;
}

.rp-module-item i {
    color: var(--rp-accent);
}

/* ── Responsive ────────────────────────────────────── */

/* ▸ Large desktops – 1440px+ */
@media (min-width: 1440px) {
    .rp-hero h1 { font-size: 3.6rem; }
    .rp-section { padding: 6rem 0; }
}

@media (max-width: 991px) {
    .rp-hero {
        padding: 8rem 0 4rem;
    }

    .rp-hero h1 {
        font-size: 2.4rem;
    }

    .rp-stats-bar {
        margin-top: -2rem;
    }

    .rp-pricing-card.featured {
        transform: none;
    }
}

/* ▸ Tablets – 768px */
@media (max-width: 767px) {
    .rp-hero {
        padding: 7rem 0 3rem;
        text-align: center;
    }

    .rp-hero h1 {
        font-size: 1.8rem;
    }

    .rp-hero .lead {
        margin: 0 auto;
    }

    .rp-section {
        padding: 3rem 0;
    }

    .rp-section-title {
        font-size: 1.6rem;
    }

    .rp-auth-card {
        margin: 0.5rem;
        padding: 1.5rem;
    }

    .rp-stats-bar {
        padding: 1rem;
    }

    .rp-stat-number {
        font-size: 1.5rem;
    }

    .rp-cta h2 {
        font-size: 1.6rem;
    }

    .rp-comparison-table {
        font-size: 0.75rem;
    }

    .rp-comparison-table th,
    .rp-comparison-table td {
        padding: 0.4rem;
    }

    .rp-feature-detail { padding: 2.5rem 0; }
}

/* ▸ Small mobile – 375px */
@media (max-width: 575px) {
    .rp-hero {
        padding: 6rem 0 2.5rem;
    }

    .rp-hero h1 {
        font-size: 1.5rem;
    }

    .rp-hero .lead {
        font-size: 1rem;
    }

    .rp-stats-bar {
        padding: 0.75rem;
        margin-top: -1.5rem;
    }

    .rp-stat-number {
        font-size: 1.25rem;
    }

    .rp-stat-label {
        font-size: 0.75rem;
    }

    .rp-section {
        padding: 2rem 0;
    }

    .rp-section-title {
        font-size: 1.3rem;
    }

    .rp-section-subtitle {
        font-size: 0.95rem;
    }

    .rp-feature-card {
        padding: 1.25rem;
    }

    .rp-pricing-card {
        padding: 1.25rem;
    }

    .rp-pricing-price {
        font-size: 2rem;
    }

    .rp-auth-card {
        padding: 1.25rem;
    }

    .rp-auth-card h1 {
        font-size: 1.4rem;
    }

    .rp-cta { padding: 3rem 0; }
    .rp-cta h2 { font-size: 1.3rem; }

    .btn-rp-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    .rp-public-nav .navbar-brand span { font-size: 1rem !important; }
}
