/* ============================================
   PROMISE PAGES - SHARED STYLES
   For /features, /features/*, /templates, /templates/* pages
   Uses unified theme system variables
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.promise-hero {
    padding: 6rem 0 6rem;
    background: linear-gradient(135deg, var(--theme-primary-hover) 0%, var(--theme-primary) 50%, var(--theme-primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.promise-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.promise-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.promise-hero .hero-background::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -400px;
    right: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pp-float-orb-1 20s ease-in-out infinite;
    filter: blur(60px);
}

.promise-hero .hero-background::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -300px;
    left: -150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pp-float-orb-2 25s ease-in-out infinite;
    filter: blur(50px);
}

.promise-hero .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pp-grid-move 30s linear infinite;
    opacity: 0.6;
}

.promise-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 5% 90%, rgba(255, 255, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.3) 0%, transparent 3px),
        radial-gradient(circle at 25% 95%, rgba(255, 255, 255, 0.5) 0%, transparent 2px),
        radial-gradient(circle at 35% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 3px),
        radial-gradient(circle at 45% 92%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 55% 88%, rgba(255, 255, 255, 0.5) 0%, transparent 3px),
        radial-gradient(circle at 65% 95%, rgba(255, 255, 255, 0.4) 0%, transparent 2px),
        radial-gradient(circle at 75% 82%, rgba(255, 255, 255, 0.3) 0%, transparent 3px),
        radial-gradient(circle at 85% 90%, rgba(255, 255, 255, 0.5) 0%, transparent 2px),
        radial-gradient(circle at 95% 87%, rgba(255, 255, 255, 0.4) 0%, transparent 3px);
    background-size: 100% 100%;
    animation: pp-particles-rise 8s linear infinite;
}

.promise-hero .hero-gradient::before,
.promise-hero .hero-gradient::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.5),
        100px 50px 0 0 rgba(255, 255, 255, 0.4),
        -80px 30px 0 0 rgba(255, 255, 255, 0.5),
        50px -20px 0 0 rgba(255, 255, 255, 0.3),
        -120px -40px 0 0 rgba(255, 255, 255, 0.6);
    animation: pp-particle-float 10s ease-in-out infinite;
}

.promise-hero .hero-gradient::before {
    top: 80%;
    left: 10%;
}

.promise-hero .hero-gradient::after {
    top: 40%;
    right: 15%;
    animation-delay: -5s;
}

.promise-hero > .container {
    position: relative;
    z-index: 2;
}

/* 3D theme overrides for promise hero */
[data-theme="3d"] .promise-hero {
    background: linear-gradient(135deg, #060616 0%, #0b0b24 50%, #060616 100%);
}

[data-theme="3d"] .promise-hero::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.2), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(34, 211, 238, 0.15), transparent 50%);
}

[data-theme="3d"] .promise-hero .hero-gradient {
    background:
        radial-gradient(circle at 5% 90%, rgba(139, 92, 246, 0.6) 0%, transparent 2px),
        radial-gradient(circle at 15% 85%, rgba(34, 211, 238, 0.5) 0%, transparent 3px),
        radial-gradient(circle at 25% 95%, rgba(251, 113, 133, 0.7) 0%, transparent 2px),
        radial-gradient(circle at 35% 80%, rgba(167, 139, 250, 0.6) 0%, transparent 3px),
        radial-gradient(circle at 45% 92%, rgba(139, 92, 246, 0.5) 0%, transparent 2px),
        radial-gradient(circle at 55% 88%, rgba(34, 211, 238, 0.7) 0%, transparent 3px),
        radial-gradient(circle at 65% 95%, rgba(251, 113, 133, 0.6) 0%, transparent 2px),
        radial-gradient(circle at 75% 82%, rgba(167, 139, 250, 0.5) 0%, transparent 3px),
        radial-gradient(circle at 85% 90%, rgba(139, 92, 246, 0.7) 0%, transparent 2px),
        radial-gradient(circle at 95% 87%, rgba(34, 211, 238, 0.6) 0%, transparent 3px);
}

[data-theme="3d"] .promise-hero .hero-gradient::before,
[data-theme="3d"] .promise-hero .hero-gradient::after {
    background: #8b5cf6;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.9),
        0 0 40px rgba(34, 211, 238, 0.6),
        100px 50px 0 0 rgba(34, 211, 238, 0.5),
        -80px 30px 0 0 rgba(251, 113, 133, 0.6);
}

.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
   ============================================ */

/* Pricing-style alternating section backgrounds + blurred gradient separators
   Scoped to /features/* and /templates/* via body[data-page-group="promise"]. */
body[data-page-group="promise"] main.full-width-content > section:not(.promise-hero) {
    background: var(--theme-bg-alt);
    position: relative;
}

body[data-page-group="promise"] main.full-width-content > section:not(.promise-hero):nth-of-type(even) {
    background: var(--theme-bg);
}

body[data-page-group="promise"] main.full-width-content > section:not(.promise-hero) > .container {
    position: relative;
    z-index: 1;
}

body[data-page-group="promise"] main.full-width-content > section:not(.promise-hero):not(:last-of-type)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    height: 140px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    filter: blur(24px);
}

body[data-page-group="promise"] main.full-width-content > section:not(.promise-hero):nth-of-type(odd):not(:last-of-type)::after {
    background: linear-gradient(to bottom, transparent, var(--theme-bg));
}

body[data-page-group="promise"] main.full-width-content > section:not(.promise-hero):nth-of-type(even):not(:last-of-type)::after {
    background: linear-gradient(to bottom, transparent, var(--theme-bg-alt));
}

.promise-section {
    position: relative;
    padding: 4rem 0 5.5rem;
    background: var(--theme-bg-alt);
}

.promise-section:nth-child(even) {
    background: var(--theme-bg);
}

.promise-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
}

.promise-section:nth-child(odd)::after {
    background: linear-gradient(to bottom, transparent, var(--theme-bg));
}

.promise-section:nth-child(even)::after {
    background: linear-gradient(to bottom, transparent, var(--theme-bg-alt));
}

.promise-section:last-child::after {
    display: none;
}

.promise-section > .container {
    position: relative;
    z-index: 1;
}

/* Keyframes shared with public pages (grid/orb/particle motion) */
@keyframes pp-float-orb-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
}

@keyframes pp-float-orb-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, -60px) scale(1.15); }
    66% { transform: translate(60px, -80px) scale(0.95); }
}

@keyframes pp-grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes pp-particles-rise {
    0% { background-position: 0% 100%; }
    100% { background-position: 0% -100%; }
}

@keyframes pp-particle-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(50px, -300px) scale(1.5); opacity: 0.8; }
    90% { opacity: 0.5; }
    100% { transform: translate(100px, -600px) scale(0.5); opacity: 0; }
}

.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;
    }
}








