/* ============================================================
 * Process pages — premium responsive layout
 * Used by services/<service>/how-it-works (and other process pages
 * that adopt the .proc-* class set).
 *
 * Mobile-first. Each step is a self-contained card with all info
 * visible — no hidden interactivity, no offscreen stage panel.
 * ============================================================ */

/* Force-visible: long sections overflow the IntersectionObserver
 * thresholds; we don't want copy stuck at opacity:0 on long pages. */
.proc-shell .reveal,
.proc-shell .reveal-stagger,
.proc-shell .reveal-stagger > *,
.proc-hero .reveal { opacity: 1 !important; transform: none !important; }

/* ===== HERO ===== */
.proc-hero {
    position: relative;
    padding: calc(var(--header-h, 70px) + 44px) 0 52px;
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 80% 0%, rgba(235,63,67,0.12) 0%, transparent 60%),
        radial-gradient(45% 50% at 0% 100%, rgba(124,92,255,0.10) 0%, transparent 65%),
        linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
}
@media (min-width: 768px) { .proc-hero { padding: calc(var(--header-h, 70px) + 64px) 0 72px; } }
@media (min-width: 992px) { .proc-hero { padding: calc(var(--header-h, 70px) + 90px) 0 100px; } }
.proc-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(235,63,67,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235,63,67,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 30%, transparent 80%);
    pointer-events: none;
}
.proc-hero-shell {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 var(--shell-pad);
    position: relative; z-index: 2;
    text-align: center;
}
.proc-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px;
    background: rgba(235,63,67,0.10);
    color: var(--c-primary);
    border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 22px;
}
.proc-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 0 0 0 rgba(235,63,67,0.55);
    animation: liveDot 1.6s ease-in-out infinite;
}
@keyframes liveDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(235,63,67,0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(235,63,67,0); }
}
.proc-hero h1 {
    font-size: clamp(1.95rem, 1.3rem + 3.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 auto 16px;
    max-width: 880px;
}
.proc-hero h1 .accent {
    background: linear-gradient(120deg, var(--c-primary) 0%, #f6a93e 60%, var(--c-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.proc-hero p {
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    color: var(--c-ink-soft);
    max-width: 660px;
    margin: 0 auto 28px;
    line-height: 1.65;
}
.proc-hero-cta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 36px;
}

/* Hero trust ribbon */
.proc-ribbon {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 920px;
}
@media (min-width: 768px) { .proc-ribbon { grid-template-columns: repeat(4, 1fr); } }
.proc-ribbon-stat {
    padding: 22px 16px;
    text-align: center;
    border-right: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}
@media (min-width: 768px) {
    .proc-ribbon-stat { padding: 26px 18px; border-bottom: none; }
    .proc-ribbon-stat:last-child { border-right: none; }
}
@media (max-width: 767px) {
    .proc-ribbon-stat:nth-child(2n) { border-right: none; }
    .proc-ribbon-stat:nth-last-child(-n+2) { border-bottom: none; }
}
.proc-ribbon-stat .num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, var(--c-primary) 0%, #f6a93e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.proc-ribbon-stat .lbl {
    display: block; margin-top: 8px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
    font-weight: 600; color: var(--c-ink-soft);
}

/* ===== SECTIONS ===== */
.proc-section { padding: 48px 0; }
@media (min-width: 768px) { .proc-section { padding: 72px 0; } }
@media (min-width: 992px) { .proc-section { padding: 96px 0; } }
.proc-section.tone-soft { background: var(--c-bg-soft); }
.proc-shell { max-width: var(--shell-max); margin: 0 auto; padding: 0 var(--shell-pad); }

.proc-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}
@media (min-width: 768px) { .proc-section-head { margin-bottom: 52px; } }
.proc-section-head .pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px;
    background: rgba(235,63,67,0.10);
    color: var(--c-primary);
    border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 16px;
}
.proc-section-head h2 {
    font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.4rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 10px;
}
.proc-section-head p {
    color: var(--c-ink-soft);
    font-size: 1rem;
    line-height: 1.65;
}

/* ===== STEP CARDS (the main timeline) ===== */
.proc-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}
@media (min-width: 600px) { .proc-steps { gap: 24px; } }
@media (min-width: 992px) { .proc-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* Vertical connector line on mobile/tablet (1-col only) */
@media (max-width: 991px) {
    .proc-steps::before {
        content: "";
        position: absolute;
        left: 36px;
        top: 56px;
        bottom: 56px;
        width: 2px;
        background: linear-gradient(180deg, var(--c-primary-soft) 0%, var(--c-line) 100%);
        z-index: 0;
        opacity: 0.6;
    }
}

.proc-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 22px 20px 22px 76px;
    box-shadow: var(--shadow-sm);
    transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
    overflow: hidden;
    z-index: 1;
}
@media (min-width: 600px) { .proc-step { padding: 28px 26px 28px 96px; } }
@media (min-width: 992px) {
    .proc-step {
        padding: 32px 28px;
        padding-top: 76px;
    }
}
.proc-step::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-primary) 0%, #ff7a5e 100%);
}
.proc-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Phase badge — top-left circle, with the phase number */
.proc-step-badge {
    position: absolute;
    top: 22px;
    left: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary) 0%, #ff7a5e 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 22px rgba(235,63,67,0.30);
    z-index: 2;
}
@media (min-width: 600px) {
    .proc-step-badge { top: 28px; left: 24px; width: 52px; height: 52px; font-size: 17px; }
}
@media (min-width: 992px) {
    .proc-step-badge { top: 22px; left: 22px; width: 44px; height: 44px; font-size: 15px; }
}

.proc-step-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--c-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 12px;
}
.proc-step-meta i { color: var(--c-primary); font-size: 11px; }
.proc-step h3 {
    font-size: 1.15rem;
    letter-spacing: -0.015em;
    line-height: 1.22;
    margin: 0 0 10px;
    color: var(--c-ink);
}
@media (min-width: 600px) { .proc-step h3 { font-size: 1.25rem; } }
.proc-step .proc-step-desc {
    color: var(--c-ink-soft);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 16px;
}

.proc-deliverables {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 14px 16px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    list-style: none;
}
.proc-deliverables li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--c-ink);
    padding: 0;
}
.proc-deliverables li::before { display: none; }
.proc-deliverables li i {
    color: var(--c-primary);
    font-size: 11px;
    margin-top: 5px;
    flex-shrink: 0;
}

/* ===== SLA GRID ===== */
.proc-sla {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 600px) { .proc-sla { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 992px) { .proc-sla { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.proc-sla-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    text-align: left;
    transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}
.proc-sla-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.proc-sla-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--c-primary) 0%, #ff7a5e 100%);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 22px rgba(235,63,67,0.22);
}
.proc-sla-card h5 {
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    color: var(--c-ink);
}
.proc-sla-card p {
    color: var(--c-ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

/* ===== TECH CHIPS ===== */
.proc-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (min-width: 600px) { .proc-stack { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 992px) { .proc-stack { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.proc-stack-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 12px;
    font-size: 13px;
    color: var(--c-ink);
    font-weight: 500;
    line-height: 1.3;
    transition: transform 200ms var(--ease-out), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
@media (min-width: 600px) { .proc-stack-chip { padding: 14px 16px; font-size: 13.5px; } }
.proc-stack-chip:hover { transform: translateY(-2px); border-color: var(--c-primary-soft); box-shadow: var(--shadow-sm); }
.proc-stack-chip i {
    color: var(--c-primary);
    font-size: 14px;
    flex-shrink: 0;
}

/* ===== FAQ ===== */
.proc-faq {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}
@media (min-width: 768px) { .proc-faq { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.proc-faq-item {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease), transform 240ms var(--ease-out);
}
.proc-faq-item:hover { border-color: var(--c-primary-soft); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.proc-faq-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--c-ink);
}
.proc-faq-item h4 i {
    color: var(--c-primary);
    font-size: 13px;
    margin-top: 4px;
    flex-shrink: 0;
}
.proc-faq-item p {
    color: var(--c-ink-soft);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding-left: 23px;
}

/* ===== FINAL CTA BAND ===== */
.proc-final {
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(235,63,67,0.18) 0%, transparent 70%),
        linear-gradient(180deg, #1a1a2e 0%, #2a1f3d 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
@media (min-width: 768px) { .proc-final { padding: 88px 0; } }
@media (min-width: 992px) { .proc-final { padding: 110px 0; } }
.proc-final::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
    pointer-events: none;
}
.proc-final-shell {
    position: relative; z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--shell-pad);
}
.proc-final h2 {
    font-size: clamp(1.65rem, 1.15rem + 2vw, 2.6rem);
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.proc-final p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 26px;
}
.proc-final-row {
    display: flex; flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.proc-final-row .btn-primary {
    background: #fff;
    color: var(--c-primary);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.proc-final-row .btn-primary:hover { background: var(--c-ink); color: #fff; }
.proc-final-row .btn-ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.30);
    background: transparent;
}
.proc-final-row .btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: #fff; color: #fff; }
