/* ═══════════════════════════════════════════════════
   xHireAI — Sub-Page Shared Styles
   Extends site.css for all non-landing pages
   ═══════════════════════════════════════════════════ */

/* ── Page Shell ── */
.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-body {
    flex: 1;
    padding: 8rem 0 4rem;
}
.page-header {
    margin-bottom: 3rem;
}
.page-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}
.page-header .page-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    max-width: 560px;
}
.page-header .page-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #22d3ee;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* ── Back Link ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.back-link:hover { color: #22d3ee; }

/* ── Legal / Long-form Text ── */
.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #22d3ee;
    margin: 2.5rem 0 0.8rem;
    letter-spacing: -0.01em;
}
.legal-content h2:first-of-type {
    margin-top: 0;
}
.legal-content p,
.legal-content li {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}
.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-content a {
    color: #22d3ee;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-content strong {
    color: rgba(255,255,255,0.85);
}

/* ── Comparison Table ── */
.compare-table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.compare-table th {
    text-align: left;
    padding: 1rem 1.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    white-space: nowrap;
}
.compare-table th.featured {
    color: #22d3ee;
    background: rgba(34,211,238,0.04);
}
.compare-table td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .feature-name {
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    min-width: 200px;
}
.compare-table .check { color: #22c55e; font-weight: 700; }
.compare-table .dash { color: rgba(255,255,255,0.15); }

/* ── Pricing Detailed Cards ── */
.pricing-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 3rem;
}
.pricing-detail-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.2s;
}
.pricing-detail-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}
.pricing-detail-card.featured {
    border-color: rgba(34,211,238,0.35);
    background: rgba(34,211,238,0.03);
}
.pricing-detail-card .plan-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.5rem;
}
.pricing-detail-card.featured .plan-label {
    color: #22d3ee;
}
.pricing-detail-card .plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.pricing-detail-card .plan-price {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.3rem;
}
.pricing-detail-card .plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
}
.pricing-detail-card .plan-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.pricing-detail-card .plan-features {
    list-style: none;
    flex: 1;
    margin-bottom: 2rem;
}
.pricing-detail-card .plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-detail-card .plan-features li:last-child { border-bottom: none; }
.pricing-detail-card .plan-features svg { color: #22c55e; flex-shrink: 0; }
.pricing-detail-card .btn-plan {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    border-radius: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.pricing-detail-card .btn-plan.primary {
    background: #fff;
    color: #000;
}
.pricing-detail-card .btn-plan.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.1);
}
.pricing-detail-card .btn-plan.secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.pricing-detail-card .btn-plan.secondary:hover {
    border-color: rgba(255,255,255,0.2);
}

/* ── FAQ Accordion ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    margin-bottom: -1px;
    overflow: hidden;
}
.faq-item:first-child { border-radius: 1rem 1rem 0 0; }
.faq-item:last-child { border-radius: 0 0 1rem 1rem; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: rgba(255,255,255,0.3);
}
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
}
.faq-answer-inner {
    padding: 0 1.5rem 1.2rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* ── About Page Grid ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}
.about-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: border-color 0.3s, transform 0.2s;
}
.about-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.about-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.about-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ── Locations Grid ── */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.location-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.2s;
}
.location-card:hover {
    border-color: rgba(34,211,238,0.3);
    transform: translateY(-2px);
}
.location-card .location-icon {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}
.location-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.location-card p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

/* ── Steps / How It Works (shared) ── */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.step-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.2s;
}
.step-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.step-num {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee, #10b981);
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem;
}
.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.step-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

/* ── Referral Reward Box ── */
.reward-box {
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(34,211,238,0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
}
.reward-amount {
    font-size: 4.5rem;
    font-weight: 900;
    color: #22d3ee;
    line-height: 1;
}
.reward-label {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
}
.reward-note {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
    margin-top: 1rem;
}

/* ── Checkout Card ── */
.checkout-container {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    max-width: 500px;
    width: 100%;
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    margin: 0 auto;
}
.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.btn-checkout {
    display: block;
    width: 100%;
    background: #fff;
    color: #000;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.1);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pricing-detail-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .page-body { padding: 7rem 0 3rem; }
    .page-header h1 { font-size: 2rem; }
    .locations-grid { grid-template-columns: 1fr; }
    .compare-table { font-size: 0.78rem; }
}
