/* ============================================
   PROMISE PAGES - SHARED STYLES
   For /features, /features/*, /templates, /templates/* pages
   Uses unified theme system variables
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.promise-hero {
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
    background: var(--theme-bg);
}

.promise-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 50%, var(--theme-primary), transparent 50%),
        radial-gradient(circle at 85% 30%, var(--theme-secondary), transparent 50%),
        radial-gradient(circle at 50% 80%, var(--theme-accent), transparent 50%);
    opacity: 0.08;
    z-index: 0;
}

.promise-hero .container {
    position: relative;
    z-index: 1;
}

.promise-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.promise-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.promise-hero-badge i {
    font-size: 0.75rem;
}

.promise-hero-badge.status-coming-soon {
    border-color: var(--theme-warning);
    color: var(--theme-warning);
}

.promise-hero-badge.status-coming-soon i {
    color: var(--theme-warning);
}

.promise-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--theme-text);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.promise-hero h1 .text-gradient {
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promise-hero p.hero-subtitle {
    font-size: 1.2rem;
    color: var(--theme-text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SECTION LAYOUT
   ============================================ */
.promise-section {
    padding: 4rem 0;
    position: relative;
}

.promise-section:nth-child(even) {
    background: var(--theme-bg-alt);
}

.promise-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.promise-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.75rem;
}

.promise-section-header p {
    font-size: 1.05rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
}

/* ============================================
   FEATURE/CAPABILITY CARDS
   ============================================ */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.capability-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    padding: 2rem;
    transition: all var(--theme-transition);
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-gradient-primary);
    opacity: 0;
    transition: opacity var(--theme-transition);
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow-lg);
    border-color: var(--theme-primary);
}

.capability-card:hover::before {
    opacity: 1;
}

.capability-icon {
    width: 52px;
    height: 52px;
    background: var(--theme-gradient-primary);
    border-radius: var(--theme-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--theme-text-inverse);
    flex-shrink: 0;
}

.capability-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 0.75rem;
}

.capability-card p {
    font-size: 0.92rem;
    color: var(--theme-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================
   AUDIENCE / WHO IT'S FOR SECTION
   ============================================ */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.audience-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    transition: all var(--theme-transition);
}

.audience-item:hover {
    border-color: var(--theme-primary);
    box-shadow: var(--theme-shadow-md);
}

.audience-icon {
    width: 44px;
    height: 44px;
    background: var(--theme-info-bg);
    border-radius: var(--theme-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--theme-primary);
    flex-shrink: 0;
}

.audience-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 0.25rem;
}

.audience-item p {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   HOW IT WORKS - STEPS
   ============================================ */
.steps-list {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.steps-list::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--theme-border);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--theme-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-inverse);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: var(--theme-shadow-md);
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.92rem;
    color: var(--theme-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   AVAILABILITY NOTICE
   ============================================ */
.availability-notice {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: var(--theme-warning-bg);
    border: 1px solid var(--theme-warning);
    border-radius: var(--theme-radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.availability-notice i {
    font-size: 1.5rem;
    color: var(--theme-warning);
    flex-shrink: 0;
}

.availability-notice p {
    font-size: 0.92rem;
    color: var(--theme-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.promise-faq {
    padding: 4rem 0;
}

.faq-accordion {
    max-width: 720px;
    margin: 0 auto;
}

.faq-accordion-item {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--theme-transition);
}

.faq-accordion-item:hover {
    border-color: var(--theme-primary);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text);
    transition: color var(--theme-transition);
}

.faq-question:hover {
    color: var(--theme-primary);
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    transition: transform var(--theme-transition);
    flex-shrink: 0;
}

.faq-accordion-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--theme-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-accordion-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.92rem;
    color: var(--theme-text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.promise-cta {
    padding: 5rem 0;
    text-align: center;
    background: var(--theme-bg);
    position: relative;
}

.promise-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--theme-gradient-accent);
}

.promise-cta-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-xl);
    position: relative;
    overflow: hidden;
}

.promise-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--theme-gradient-primary);
}

.promise-cta-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--theme-gradient-primary);
    border-radius: var(--theme-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--theme-text-inverse);
}

.promise-cta-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.75rem;
}

.promise-cta-card p {
    font-size: 1rem;
    color: var(--theme-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-promise-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-inverse);
    background: var(--theme-gradient-primary);
    border: none;
    border-radius: var(--theme-radius-md);
    text-decoration: none;
    transition: all var(--theme-transition);
}

.btn-promise-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-primary);
    color: var(--theme-text-inverse);
}

/* ============================================
   INTERNAL LINKS SECTION
   ============================================ */
.internal-links-section {
    padding: 4rem 0;
    background: var(--theme-bg-alt);
}

.internal-links-section h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 2rem;
}

.link-group {
    max-width: 640px;
    margin: 0 auto 2rem;
}

.link-group:last-child {
    margin-bottom: 0;
}

.link-group-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--theme-border);
}

.internal-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.internal-links-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--theme-transition);
}

.internal-links-list li a::before {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--theme-primary);
    transition: transform var(--theme-transition);
}

.internal-links-list li a:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: var(--nav-link-hover-bg);
    transform: translateX(4px);
}

.internal-links-list li a:hover::before {
    transform: translateX(4px);
}

/* ============================================
   HUB PAGE - CARD GRID (Index pages)
   ============================================ */
.hub-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.hub-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    overflow: hidden;
    transition: all var(--theme-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--theme-shadow-lg);
    border-color: var(--theme-primary);
}

.hub-card-icon {
    padding: 2.5rem 2rem 0;
    display: flex;
    justify-content: center;
}

.hub-card-icon-circle {
    width: 72px;
    height: 72px;
    background: var(--theme-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--theme-text-inverse);
    box-shadow: var(--theme-shadow-primary);
}

.hub-card-body {
    padding: 1.75rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.hub-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.75rem;
}

.hub-card-body p {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
    margin: 0 0 1.25rem;
    flex: 1;
}

.hub-card-footer {
    padding: 0 2rem 1.75rem;
    text-align: center;
}

.hub-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
    transition: gap var(--theme-transition);
}

.hub-card:hover .hub-card-link {
    gap: 0.75rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .promise-hero {
        padding: 5rem 0 3rem;
    }

    .promise-hero h1 {
        font-size: 2.25rem;
    }

    .promise-hero p.hero-subtitle {
        font-size: 1.05rem;
    }

    .capability-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .promise-hero {
        padding: 4rem 0 2.5rem;
    }

    .promise-hero h1 {
        font-size: 1.85rem;
    }

    .promise-section {
        padding: 3rem 0;
    }

    .promise-section-header h2 {
        font-size: 1.5rem;
    }

    .capability-grid,
    .audience-grid,
    .hub-card-grid {
        grid-template-columns: 1fr;
    }

    .steps-list {
        padding-left: 0;
    }

    .steps-list::before {
        left: 23px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .promise-cta-card {
        padding: 2rem 1.5rem;
    }

    .availability-notice {
        flex-direction: column;
        text-align: center;
    }
}
