/* Minimal app styles — Pico CSS loaded via CDN in base.html */

/* Status badges — !important overrides Pico's article>header color inheritance */
.badge {
    display: inline-block;
    font-size: 0.75rem !important;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    vertical-align: middle;
    line-height: 1.4;
    cursor: default;
    white-space: nowrap;
}
.badge-ready {
    background: #2e7d32 !important;
    color: #fff !important;
}
.badge-incomplete {
    background: #e65100 !important;
    color: #fff !important;
}
.badge-not-started {
    background: #757575 !important;
    color: #fff !important;
}

/* Document status buttons on dashboard */
.doc-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    margin: 0;
    border-width: 2px;
}
.doc-btn-generated {
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
}
.doc-btn-required {
    border-color: #e65100 !important;
    color: #e65100 !important;
}

/* Flight summary line */
.flight-summary {
    font-size: 0.85rem;
    color: var(--pico-muted-color);
    margin: 0.25rem 0 0.5rem 0;
}

/* Flight card header with readiness badge */
.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}
.flight-header h4 {
    margin: 0;
}

/* Small action buttons in document table */
.btn-sm {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.8rem !important;
    margin: 0 0 0 0.25rem !important;
    width: auto !important;
    display: inline-block !important;
}

/* Document table */
.doc-table td,
.doc-table th {
    vertical-align: middle;
}
.doc-table td:last-child {
    white-space: nowrap;
}

/* ===== Landing page ===== */

.landing-section {
    padding: 4rem 0;
}
.landing-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.landing-dark {
    background: var(--pico-card-background-color);
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0 4rem 0;
}
.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.hero .subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--pico-muted-color);
}
.hero .trust-bullets {
    text-align: left;
    max-width: 440px;
    margin: 0 auto 2rem auto;
    line-height: 2.2;
    font-size: 1.05rem;
}
.hero .cta-box {
    max-width: 400px;
    margin: 0 auto;
}

/* How it works — step flow */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.step {
    text-align: center;
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    padding: 0 0.5rem;
}
.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--pico-primary-background);
    color: var(--pico-primary-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    font-size: 1.6rem;
}
.step h4 {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
.step p {
    font-size: 0.82rem;
    color: var(--pico-muted-color);
    line-height: 1.4;
}
.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 1.2rem;
    font-size: 1.5rem;
    color: var(--pico-muted-color);
}
@media (max-width: 768px) {
    .step-arrow { display: none; }
    .steps { gap: 1.5rem; }
}

/* Feature section with screenshot */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.feature-row.reverse {
    direction: rtl;
}
.feature-row.reverse > * {
    direction: ltr;
}
.feature-screenshot {
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    width: 100%;
    height: auto;
    border: 1px solid rgba(255,255,255,0.1);
}
.feature-text h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.feature-text ul {
    list-style: none;
    padding: 0;
    line-height: 2.2;
}
.feature-text ul li::before {
    content: "\2713  ";
    color: var(--pico-primary);
    font-weight: 700;
}
@media (max-width: 768px) {
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 1.5rem;
    }
}

/* Pricing cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--pico-card-background-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid var(--pico-card-border-color, rgba(255,255,255,0.1));
    position: relative;
}
.pricing-card.featured {
    border-color: var(--pico-primary);
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem 0;
}
.pricing-card .price-sub {
    color: var(--pico-muted-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.pricing-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
    line-height: 2.2;
    margin-bottom: 1.5rem;
}
.pricing-card ul li::before {
    content: "\2713  ";
    color: var(--pico-primary);
    font-weight: 700;
}
.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pico-primary);
    color: var(--pico-primary-inverse);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.8rem;
    border-radius: 1rem;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Screenshot placeholder */
.screenshot-placeholder {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--pico-muted-color);
    font-size: 0.9rem;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 3rem 0;
}
.final-cta h2 {
    margin-bottom: 1.5rem;
}

/* Landing footer */
.landing-footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
    color: var(--pico-muted-color);
}
