/* AI-native service pages - shared styles.
   Loaded only by the new service pages. Uses existing theme variables (css/variables.css).
   Does not modify any existing stylesheet. */

.skip-link { top: -100px; }
.skip-link:focus { top: 0; }
.footer { margin-top: 0; }

/* Section rhythm */
main > section:not(.page-hero):not(.cta-section) { padding: var(--space-2xl) 0; }
.section-heading { margin-bottom: var(--space-xl); }
main .card-glass h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.3; }
.section-glow { position: relative; overflow: hidden; }
.section-glow::before { content: ''; position: absolute; top: -220px; right: -220px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(255, 107, 53, 0.11), transparent 70%); pointer-events: none; }
.section-glow > .container { position: relative; z-index: 1; }

/* Page hero (same look as the original home hero: dim tech image + orange wash) */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl); }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.page-hero .hero-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%); }
.page-hero .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.4) 70%, rgba(10, 10, 10, 0.15) 100%); }
.page-hero .hero-content { position: relative; z-index: 1; }
.page-hero .hero-title { font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 860px; }
.page-hero .hero-description { max-width: 680px; font-size: 1.15rem; margin-bottom: var(--space-lg); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; font-weight: var(--font-weight-semibold); letter-spacing: 2px; text-transform: uppercase; color: var(--secondary); margin-bottom: var(--space-md); padding: 0.4rem 0.9rem; border: 1px solid rgba(245, 158, 11, 0.4); border-radius: var(--radius-full); background: rgba(10, 10, 10, 0.5); }
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.btn-outline-light { background: transparent; border: 2px solid var(--primary); color: var(--light); }
.btn-outline-light:hover { background: var(--primary); color: var(--light); }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 var(--space-md); font-size: 0.875rem; }
.breadcrumb li { color: var(--light-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; color: rgba(255, 107, 53, 0.6); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Text blocks */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { margin-bottom: var(--space-md); }
.prose a, .section-description a, .definition-card a { color: var(--primary); text-decoration: none; font-weight: var(--font-weight-semibold); }
.prose a:hover, .section-description a:hover, .definition-card a:hover { text-decoration: underline; }
.lead-statement { font-size: 1.25rem; font-weight: var(--font-weight-semibold); color: var(--light); text-align: center; margin: var(--space-lg) auto 0; max-width: 760px; }
.lead-statement span { color: var(--primary); }
.definition-card { max-width: 820px; margin: 0 auto var(--space-xl); background: rgba(26, 26, 26, 0.6); border: 1px solid rgba(255, 107, 53, 0.2); border-left: 4px solid var(--primary); border-radius: var(--radius-md); padding: var(--space-lg); }
.definition-card h2, .definition-card h3 { font-size: 1.1rem; margin-bottom: var(--space-xs); color: var(--primary); }
.definition-card p { margin-bottom: var(--space-sm); color: var(--light); }
.definition-card p:last-child { margin-bottom: 0; }

/* Lists and links */
.check-list { list-style: none; padding: 0; margin: var(--space-md) 0 0; }
.check-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.45rem; color: var(--light-muted); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); }
.check-list a { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(255, 107, 53, 0.5); }
.check-list a:hover { color: var(--primary); }
.card-link { display: inline-block; margin-top: var(--space-xs); padding: 0.5rem 0; color: var(--primary); font-weight: var(--font-weight-semibold); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.icon-box { width: 60px; height: 60px; background: var(--gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.compare-tag { display: inline-block; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; font-weight: var(--font-weight-semibold); color: var(--primary); margin-bottom: var(--space-xs); }

/* Cards */
.accent-card { position: relative; overflow: hidden; }
.accent-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); opacity: 0.85; }
.step-number { font-size: 2.2rem; font-weight: var(--font-weight-bold); background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: var(--space-xs); }
.step-statement { color: var(--light); font-weight: var(--font-weight-semibold); background: rgba(255, 107, 53, 0.08); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-md); margin-top: var(--space-md); }

/* Comparison */
.compare-grid { position: relative; }
.compare-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: var(--space-sm); }
.compare-card.is-native { border-color: rgba(255, 107, 53, 0.45); box-shadow: var(--shadow); }
.compare-card.is-assisted .check-list li::before { background: var(--light-muted); height: 3px; top: 0.8em; }
.compare-card.is-native .check-list li { padding-left: 1.7rem; }
.compare-card.is-native .check-list li::before { content: '\2713'; background: none; width: auto; height: auto; top: 0; color: var(--primary); font-weight: var(--font-weight-bold); }
.vs-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: var(--font-weight-bold); display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: var(--glow); }

/* Statement band */
.differentiator { background: linear-gradient(var(--dark-card), var(--dark-card)) padding-box, var(--gradient) border-box; border: 1px solid transparent; border-radius: var(--radius-lg); padding: var(--space-xl); margin-top: var(--space-xl); text-align: center; box-shadow: var(--shadow); }
.differentiator p { color: var(--light); font-size: 1.3rem; font-weight: var(--font-weight-semibold); margin: 0 auto; max-width: 780px; line-height: 1.45; }
.differentiator p strong { color: var(--primary); }

/* Related pages */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: rgba(26, 26, 26, 0.6); border: 1px solid rgba(255, 107, 53, 0.15); border-radius: var(--radius-md); margin-bottom: var(--space-sm); transition: border-color var(--transition-base), box-shadow var(--transition-base); }
.faq details:hover, .faq details[open] { border-color: rgba(255, 107, 53, 0.45); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: var(--space-md); font-weight: var(--font-weight-semibold); color: var(--light); list-style: none; display: flex; justify-content: space-between; gap: var(--space-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 var(--space-md) var(--space-md); margin: 0; }

/* CTA */
.cta-section { padding: calc(var(--space-2xl) * 1.1) 0; }
.cta-section h2 { max-width: 900px; margin-left: auto; margin-right: auto; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-section p { max-width: 760px; margin: 0 auto var(--space-md); }
.cta-section .flex { margin-top: var(--space-lg); }

/* Motion: reuse card hover language on process steps */
.steps-row .card-glass { height: 100%; }

@media (max-width: 767px) {
    .page-hero .hero-bg::after { background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.7) 100%); }
    .compare-grid, .cols-2 { grid-template-columns: 1fr; }
    .vs-badge { display: none; }
    .differentiator { padding: var(--space-lg); }
    .differentiator p { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

/* Chip grid (standalone lists) */
.chip-grid { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-sm); }
.chip-grid li { position: relative; background: rgba(26, 26, 26, 0.6); border: 1px solid rgba(255, 107, 53, 0.15); border-radius: var(--radius-md); padding: 0.95rem 1.1rem 0.95rem 2.3rem; color: var(--light); transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base); }
.chip-grid li::before { content: ''; position: absolute; left: 1.05rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; background: var(--primary); }
.chip-grid li:hover { transform: translateY(-3px); border-color: rgba(255, 107, 53, 0.45); box-shadow: var(--shadow); }
.chip-grid a { color: var(--light); text-decoration: none; display: block; }
.chip-grid a:hover { color: var(--primary); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1099px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .grid-5 { grid-template-columns: 1fr; } }
.breadcrumb a { display: inline-block; padding: 0.4rem 0; }

.chip-grid li.has-link { padding: 0; }
.chip-grid li.has-link a { padding: 0.95rem 1.1rem 0.95rem 2.3rem; }

.breadcrumb li { display: flex; align-items: center; }
.flex-4 { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-lg); }
.flex-4 > div { flex: 0 1 calc(25% - 1.5rem); min-width: 230px; }
@media (max-width: 767px) { .flex-4 > div { flex-basis: 100%; } }
.chip-grid li { display: flex; align-items: center; }
.chip-grid li.has-link { align-items: stretch; }
.chip-grid li.has-link a { flex: 1; display: flex; align-items: center; }

/* Let the theme's card hover (translateY) work after the scroll-in animation finishes.
   The shared .animate-* classes use "forwards", which pins transform and blocks :hover. */
[data-animate].visible { animation-fill-mode: backwards; }
